2

When I try to do rspec rspec_001.rb I get the above error

How can I get around the error and run tests?

contents of rspec_001.rb:

require 'rspec'

class Dummy < Object
end

describe "a test" do
end

I can't seem to use bundle exec rspec rspec_001.rb as this is not a Rails project with a Gemfile.

4

1 回答 1

4

gem update rspec fixed this and now the spec runs ("No examples found." is ok, there aren't any) -

rspec rspec_001.rb
No examples found.

Finished in 0.00011 seconds
0 examples, 0 failures
于 2013-03-30T16:28:05.660 回答