# coding: utf-8 describe Hallon do describe "VERSION" do specify { Hallon::VERSION.should be_a String } end describe "API_VERSION" do specify { Hallon::API_VERSION.should == 10 } end describe "API_BUILD" do specify { Hallon::API_BUILD.should be_a String } end describe "URI" do subject { Hallon::URI } example_uris.keys.each do |uri| it { should match uri } end end describe "#load_timeout" do it "should raise an error given a negative timeout" do expect { Hallon.load_timeout = -1 }.to raise_error(ArgumentError) end it "should allow setting and retrieving the value" do Hallon.load_timeout.should eq 5 Hallon.load_timeout = 0.2 Hallon.load_timeout.should eq 0.2 end end end