bullet_train icon indicating copy to clipboard operation
bullet_train copied to clipboard

Wrong test class name is generated when using scaffolding

Open phortx opened this issue 2 years ago • 1 comments

posts_controller_test.rb contains:

module Api
  module V1
    module Scaffolding
      module CompletelyConcrete
        class TangibleThingsControllerTest < Api::Test

Instead of PostsControllerTest

phortx avatar Dec 27 '22 15:12 phortx

@phortx Would you mind posting the steps you took to scaffold Posts? For example, I entered these commands:

> rails g model Post team:references title:string
> bin/super-scaffold crud Post Team title:text_field

This scaffolds the following in test/controllers/api/v1/posts_controller_test.rb:

require "controllers/api/v1/test"

class Api::V1::PostsControllerTest < Api::Test
  ...
end

gazayas avatar Dec 28 '22 09:12 gazayas

@phortx, any chance you could help us out with some reproduction steps?

jagthedrummer avatar Aug 28 '23 20:08 jagthedrummer

I'm going to close this since we haven't been able to reproduce it. @phortx, feel free to reopen this and include some reproduction steps if it's still giving you problems.

jagthedrummer avatar Oct 03 '23 18:10 jagthedrummer