All ran perfectly well. I really don’t know what’s going on on your
machine.
Installing plugin from the url you provided fixed the issue. I had
“undefined method `failure_message’” problem with plugin installed today
from this url:
svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails
I have a project on edge rails that I’m trying to convert from Test:Unit
to rspec. I have the rspec gem version 2338, the rspec and
rsepc_on_rails version 2831 in vendor/plugins, and rails version 8117 in
vendor/rails.
I’ve been able to get a few specs passing, have gotten the specs running
from autotest, and am able to do “rake spec:doc” and get the basic
command line spec printout. I’d like be able to generate the html spec
printout, so I tried “spec spec --format html” but got the “undefined
method `before’ for Spec::Rails::DSL::RailsExample:Class
(NoMethodError)” mentioned in the “Autotest busted with Rspec/Rails
trunk” thread from this forum.
I was wondering if anyone else has been able to get the spec printouts
working with edge rails and if so what versions of
rails/rspec/rspec_on_rails were used.
Thanks for your help,
Mark
I found in the rdocs that I can use:
rake spec:doc SPEC_OPTS="–format html" > spec_doc.html