lib/rspectacular/plugins/webmock.rb in rspectacular-0.62.0 vs lib/rspectacular/plugins/webmock.rb in rspectacular-0.62.1
- old
+ new
@@ -4,14 +4,14 @@
begin
require 'webmock/rspec'
RSpec.configure do |config|
- config.around(:each, :web_mock => lambda { |v| !!v }) do |example|
+ config.around(:each, web_mock: ->(v) { !!v }) do |example|
options = example.metadata[:web_mock]
options = case options
when TrueClass
- { :allow_localhost => true }
+ { allow_localhost: true }
end
WebMock.disable_net_connect!(options)
example.run