Sha256: fcea7a6d7581c2c027a9c22ef513121e5043ee5449a2a519b2b0f8ac5d4ed0ef
Contents?: true
Size: 686 Bytes
Versions: 5
Compression:
Stored size: 686 Bytes
Contents
require 'spec_helper' describe Barometer do describe ".config" do around do |example| cached_config = Barometer.config example.run Barometer.config = cached_config end it "has a default value" do expect( Barometer.config ).to eq({ 1 => {wunderground: {version: :v1}} }) end it "sets the value" do Barometer.config = { 1 => [:yahoo] } expect( Barometer.config ).to eq({ 1 => [:yahoo] }) end end describe ".timeout" do it "has a default value" do expect( Barometer.timeout ).to eq 15 end it "sets the value" do Barometer.timeout = 5 expect( Barometer.timeout ).to eq 5 end end end
Version data entries
5 entries across 5 versions & 1 rubygems