spec/spec_helper.rb in uptimerobot-0.1.1 vs spec/spec_helper.rb in uptimerobot-0.1.2

- old
+ new

@@ -4,13 +4,15 @@ 'apiKey' => 'ZAPZAPZAP', 'format' => 'json', 'noJsonCallback' => '1' } -def uptime_robot +def uptime_robot(options = {}) + options = {apiKey: 'ZAPZAPZAP'}.merge(options) + stubs = Faraday::Adapter::Test::Stubs.new - described_class.new(apiKey: 'ZAPZAPZAP') do |faraday| + described_class.new(options) do |faraday| faraday.adapter :test, stubs do |stub| yield(stub) end end end