Alexey Poimtsev
Alexey Poimtsev

Reputation: 2847

rspec and plugin generation

I have rails project with rspec as default test framework. On attempt to generate new plugin i see following:

test1 alec$ rails g plugin o2p -g -t
      create  vendor/plugins/o2p
      create  vendor/plugins/o2p/MIT-LICENSE
      create  vendor/plugins/o2p/README
      create  vendor/plugins/o2p/Rakefile
      create  vendor/plugins/o2p/init.rb
      create  vendor/plugins/o2p/install.rb
      create  vendor/plugins/o2p/uninstall.rb
      create  vendor/plugins/o2p/lib
      create  vendor/plugins/o2p/lib/o2p.rb
      invoke  generator
      inside    vendor/plugins/o2p
      create      lib/generators
      create      lib/generators/o2p_generator.rb
      create      lib/generators/USAGE
      create      lib/generators/templates
       error  rspec [not found]

I've confused with line "error rspec [not found]". What's the problem with using rspec generators in rails plugin?

Upvotes: 4

Views: 1338

Answers (1)

Scott Schulthess
Scott Schulthess

Reputation: 2923

This is being tracked on the rspec-rails GitHub here. It's not fixed yet.

EDIT: should be fixed in relatively recent versions of rspec (patch went in 2 years ago)

Upvotes: 5

Related Questions