spec/spec_helper.rb in paymill-0.4.0 vs spec/spec_helper.rb in paymill-0.5.0
- old
+ new
@@ -1,10 +1,18 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require "paymill"
require "rspec"
-require "rspec/autorun"
require "webmock/rspec"
require "pry"
+require "fake_logger"
+Paymill.logger = FakeLogger.new
+
RSpec.configure do |config|
+ config.expect_with :rspec do |c|
+ c.syntax = [:should, :expect]
+ end
+ config.mock_with :rspec do |c|
+ c.syntax = [:should, :expect]
+ end
end