spec/spec_helper.rb in rakismet-1.5.2 vs spec/spec_helper.rb in rakismet-1.5.3
- old
+ new
@@ -1,10 +1,11 @@
require File.expand_path "lib/rakismet"
require 'ostruct'
RSpec.configure do |config|
- config.mock_with :rspec
+ config.mock_with(:rspec) { |c| c.syntax = :should }
+ config.expect_with(:rspec) { |c| c.syntax = :should }
end
class AkismetModel
include Rakismet::Model
end
@@ -37,6 +38,6 @@
def empty_request
OpenStruct.new(:user_ip => nil,
:user_agent => nil,
:referrer => nil,
:http_headers => nil)
-end
\ No newline at end of file
+end