[rspec-users] RSpec on Rails 2.0
lists at ruby-forum.com
Wed Nov 14 20:10:39 EST 2007
Mark McG. wrote:
> 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
> 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
I hope that helps someone,
Posted via http://www.ruby-forum.com/.
More information about the rspec-users