I am trying to run RSpec for Ruby on Rails. I am running Rails 5.0. I installed the stone, set the folder with some tests.
I run the following command on the console
$ rspec --init create spec/spec_helper.rb create .rspec
I create a file called test.rb.
class Test end
I am creating a file called "zombie_spec.rb".
require 'spec_helper' require 'test' describe Test do it " Name Is Bapu." do
Then after executing this command
rspec spec/lib/zombie_spec.rb
Shows an error ⬇
An error occurred while loading ./spec/lib/zombie_spec.rb. Failure/Error: require 'test' LoadError: cannot load such file -- test
How do I solve this problem to start running tests?
ruby ruby-on-rails-5 rspec rspec-rails rspec3
Ronak Bhatt Jul 31 '17 at 12:49 2017-07-31 12:49
source share