Sha256: d461aa597904dd33c9746aa40da15f3c9026ce506e31fd71375ee2ea8de614c7
Contents?: true
Size: 480 Bytes
Versions: 3
Compression:
Stored size: 480 Bytes
Contents
require 'statuscake' require 'uri' TEST_API_KEY = 'l6OxVJilcD2cETMoNRvn' TEST_USERNAME = 'StatusCake' def status_cake(options = {}) options = { API: TEST_API_KEY, Username: TEST_USERNAME, }.merge(options) stubs = Faraday::Adapter::Test::Stubs.new described_class.new(options) do |faraday| faraday.adapter :test, stubs do |stub| yield(stub) end end end def stringify_hash(hash) Hash[*hash.map {|k, v| [k.to_s, v.to_s] }.flatten(1)] end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
statuscake-0.1.2 | spec/spec_helper.rb |
statuscake-0.1.1 | spec/spec_helper.rb |
statuscake-0.1.0 | spec/spec_helper.rb |