开发者

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 开发者_如何学C[not found]

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


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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜