spec/spec_helper.rb in slosilo-1.0.0 vs spec/spec_helper.rb in slosilo-1.1.0
- old
+ new
@@ -1,12 +1,8 @@
require "simplecov"
SimpleCov.start
-RSpec.configure do |c|
- c.treat_symbols_as_metadata_keys_with_true_values = true
-end
-
require 'slosilo'
shared_context "with mock adapter" do
require 'slosilo/adapters/mock_adapter'
@@ -78,22 +74,8 @@
-----END RSA PRIVATE KEY-----
"""
end
def self.mock_own_key
- before { Slosilo.stub(:[]).with(:own).and_return key }
+ before { allow(Slosilo).to receive(:[]).with(:own).and_return key }
end
-end
-
-class RackEnvironmentInputMatcher
- def initialize expected
- @expected = expected
- end
-
- def == env
- env['rack.input'].read.should == @expected
- end
-end
-
-def rack_environment_with_input expected
- RackEnvironmentInputMatcher.new expected
end