Did you run "ruby script/generate rspec"? http://rspec.rubyforge.org/upgrade.html
On 7/9/07, Edward Ocampo-Gooding <[EMAIL PROTECTED]> wrote: > Hi Folks, > > I think I've run into a problem after upgrading to edge rspec [revision > 2160], but I'm not sure where to fix things. > > Default controller specs that look like this: > > ############################################################ > require File.dirname(__FILE__) + '/../spec_helper' > > describe PurchaseController do > > #Delete this example and add some real ones > it "should use PurchaseController" do > controller.should be_an_instance_of(PurchaseController) > end > > end > > ############################################################ > > are now causing errors like these: > > ############################################################ > NameError in 'PurchaseController should use PurchaseController' > undefined local variable or method `raise_controller_errors' for [RSpec > example]:#<Class:0x69aa99c> > ./spec/models/../spec_helper.rb:12: > ############################################################ > > For the record, my spec_helper.rb is just the default generated one: > > ############################################################ > ENV["RAILS_ENV"] = "test" > require File.expand_path(File.dirname(__FILE__) + "/../config/environment") > require 'spec/rails' > > Spec::Runner.configure do |config| > config.use_transactional_fixtures = true > config.use_instantiated_fixtures = false > config.fixture_path = RAILS_ROOT + '/spec/fixtures' > end > ############################################################ > > Am I missing something in spec_helper.rb or do I have some residual > stuff from a previous version of rspec? I'm pretty sure that I've gotten > rid of the generated stuff, but could I be missing something? > > Thanks, > Edward > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users