Sha256: 8ce647ef100ce31a34971c4cc0528ca0223f6190a378cba47d1af21ba7711ba7
Contents?: true
Size: 894 Bytes
Versions: 2
Compression:
Stored size: 894 Bytes
Contents
require 'spec_helper' describe MonkeyParty do let(:new_api_key) { "an api key" } let(:new_data_center) { "us3" } it "allows for the setting of an api key" do old_key = MonkeyParty.api_key.dup MonkeyParty.api_key = new_api_key MonkeyParty.api_key.should eql(new_api_key) #revert api key MonkeyParty.api_key = old_key end it "allows for the setting of a datacenter" do old_center = MonkeyParty.data_center.dup MonkeyParty.data_center = new_data_center MonkeyParty.data_center.should eql(new_data_center) #revert data center MonkeyParty.data_center = old_center end it "defaults the data center to us1" do old_center = MonkeyParty.data_center.dup MonkeyParty.data_center = nil MonkeyParty.data_center.should eql("us1") #revert data center MonkeyParty.data_center = old_center end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
monkey_party-0.3.2 | spec/monkey_party_spec.rb |
monkey_party-0.3.1 | spec/monkey_party_spec.rb |