How ever, it works for a model:

rails generate rspec:model Dummy

*create*  spec/models/dummy_spec.rb

*      invoke*  factory_girl

*      create*    spec/factories/dummies.rb
On Monday, 25 March 2019 15:03:00 UTC+1, belgoros wrote:
>
> I'm migrating a Rails 4 app using rspec-rails 3.2 to Rails 5.2 and RSpec 
> 3.8.2 and getting a weird issue when no request spec is generated when 
> running the corresponding generator command:
>
> rails g rspec:request Dummy
>
> I've already re-generated the app binstubs with
>
> rails app:update:bin
>
> but still without success.
>
> When I display the available tasks, the RSpec's ones are listed correctly:
>
> rails generate --help
>
> Usage: rails generate GENERATOR [args] [options]
>
>
> General options:
>
>   -h, [--help]     # Print generator's options and usage
>
>   -p, [--pretend]  # Run but do not make any changes
>
>   -f, [--force]    # Overwrite files that already exist
>
>   -s, [--skip]     # Skip files that already exist
>
>   -q, [--quiet]    # Suppress status output
>
>
> Please choose a generator below.
>
>
> Rails:
>
>   application_record
>
>   assets
>
>   channel
>
>   controller
>
>   generator
>
>   helper
>
>   integration_test
>
>   job
>
>   mailer
>
>   migration
>
>   model
>
>   resource
>
>   scaffold
>
>   scaffold_controller
>
>   system_test
>
>   task
>
>
> ActiveRecord:
>
>   active_record:application_record
>
>   active_record:migration
>
>   active_record:model
>
>
> Coffee:
>
>   coffee:assets
>
>
> FactoryGirl:
>
>   factory_girl:model
>
>
> Js:
>
>   js:assets
>
>
> Rspec:
>
>   rspec:controller
>
>   rspec:feature
>
>   rspec:helper
>
>   rspec:install
>
>   rspec:integration
>
>   rspec:job
>
>   rspec:mailer
>
>   rspec:model
>
>   rspec:observer
>
>   rspec:request
>
>   rspec:scaffold
>
>   rspec:view
>
> What am I missing ?
> Thank you.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/012673f8-e948-4422-97a1-6faded815540%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to