spec/spec_helper.rb in paul_revere-1.1 vs spec/spec_helper.rb in paul_revere-1.2

- old
+ new

@@ -4,10 +4,11 @@ require "rails/all" require "rspec/rails" # Pull in the fake rails app require 'fake_app' +require 'mocha/setup' # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| @@ -15,10 +16,10 @@ # methods or matchers require 'rspec/expectations' config.include RSpec::Matchers # == Mock Framework - config.mock_with :mocha + config.mock_framework = :mocha # Remove announcements before each example config.before(:each) do Announcement.delete_all end