bullet_train
bullet_train copied to clipboard
Wrong test class name is generated when using scaffolding
posts_controller_test.rb
contains:
module Api
module V1
module Scaffolding
module CompletelyConcrete
class TangibleThingsControllerTest < Api::Test
Instead of PostsControllerTest
@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
@phortx, any chance you could help us out with some reproduction steps?
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.