Rspec and plugin generation

I have a rails project with rspec as a standard test environment. When I try to create a new plugin, I see the 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 got confused in the line "error rspec [not found]". What is the problem with using rspec generators in rails plugin?

+4
source share
1 answer

This is tracked on rspec-rails github here . It has not yet been fixed.

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

+5
source

Source: https://habr.com/ru/post/1335687/


All Articles