Radhesh Kamath wrote in post #985062: > spec_helper.rb looks like so: > ENV["RAILS_ENV"] ||= 'development' > require File.expand_path("../../config/environment", __FILE__) > > # Requires supporting ruby files with custom matchers and macros, etc, > # in spec/support/ and its subdirectories. > Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} >
Sorry about the trouble, folks. It was my mistake. Adding require 'rspec/rails' fixed my problem. Thanks, Radhesh -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users