I use rails 4.1.1
When i execute the command rails g generator my_generator
rails g generator my_generator
The generator works, but always ends on error rspec [not found]
error rspec [not found]
I added gems rspecand rspec-railsto your Gemfile.
rspec
rspec-rails
What step am I missing to get this to work?
You do not need to add rspecgem to your files, just rspec-rails.
After bundle installrun, rails generate rspec:installand everything should work fine.
bundle install
rails generate rspec:install
Recommended way to install RSpec using the rspec-rails repository :
rspec-rails :development :test Gemfile:
:development
:test
group :development, :test do gem 'rspec-rails', '~> 3.0' end
bundle install RSpec .
Source: https://habr.com/ru/post/1546379/More articles:JNI: cannot find library in java.library.path when running JUnit - javaAngularJS '$ sce.trustAsHtml ignored - javascriptHow to make an asynchronous self-starting loop non-recursive - promiseDll invokes another dll with JNA - javaIs there a way to force a network connection through 4G, even if WiFi is turned on and connected? - android413 - Request entity too large - gmail-apiHAXM emulator error - androidHow to make `git push -f`" safe "- gitRestAngular: put and customPUT send the old object, not update it - javascriptCan I undo tab closing in Matlab editor? - matlabAll Articles