I’m trying to get tests running on a gem I forked on github. When I try
to run tests, it says “0 examples”, despite lots of tests in the /spec
directory. Here is some pertinent information:
Finished in 0.00004 seconds
0 examples, 0 failures
I’ve got an email out to the primary developer of the original gem, but
think I may be having a more general problem. The readme for the project
does say to use ‘rake spec’ using RSpec 1.2.2, but that yields a “No
Rakefile found” error.
I’ve got an email out to the primary developer of the original gem, but think I
may be having a more general problem. The readme for the project does say to use
‘rake spec’ using RSpec 1.2.2, but that yields a “No Rakefile found” error.
What am I missing here?
RSpec-2 is nearly 100% backward compatible when it comes to how specs
are structured, matchers, etc, but there are changes to important pieces
that could lead to what your seeing. For example the top level directory
is ‘rspec’ instead of ‘spec’, so if the spec_helper in the app says
“require ‘spec’”, then things are likely to fall apart.
I’d stick with rspec-1.2.2 if that’s what the project says works.
In terms of the “No Rakefile found” error, that comes directly from
rake, so if there is a Rakefile in the directory you’re calling “rake
spec” in, then I’m at a loss. Anybody else have any insights?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.