# This file is copied to ~/spec when you run 'ruby script/generate rspec' # from the project root directory. ENV["RAILS_ENV"] ||= 'test' require File.expand_path('../rails_app/config/application', __FILE__) require File.expand_path('../rails_app/config/environment', __FILE__) # Run migration ActiveRecord::Migration.verbose = false require File.expand_path('../../db/schema', __FILE__) require 'rspec/rails' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} # Load ContentEngine require 'content_engine' Rspec.configure do |config| require File.dirname(__FILE__) + '/blueprint' # Remove this line if you don't want Rspec's should and should_not # methods or matchers require 'rspec/expectations' config.include Rspec::Matchers # == Mock Framework config.mock_with :rspec include Webrat::Methods def should_see (pattern) response.should contain(pattern) end end