Sha256: cc0c671762120346d16e6c2960c31df77205d239a29579813fa16f1a76518ac7
Contents?: true
Size: 653 Bytes
Versions: 3
Compression:
Stored size: 653 Bytes
Contents
require 'spec_helper' module Hominid describe API do it "requires an API key" do expect {Hominid::API.new}.should raise_error(ArgumentError) end it "requires a valid API key" do expect {Hominid::API.new(@invalid_api_key)}.should raise_error(ArgumentError) end it "also accepts config options" do expect {Hominid::API.new(@valid_api_key, {:secure => true})}.should_not raise_error(ArgumentError) end # TODO: Need a way to mock XMLRPC requests. end describe STS do it "returns an instance of API" do Hominid::STS.new(@valid_api_key).should be_kind_of(Hominid::API) end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
hominid-wout-3.0.6 | spec/hominid/hominid_spec.rb |
hominid-3.0.5 | spec/hominid/hominid_spec.rb |
hominid-3.0.4 | spec/hominid/hominid_spec.rb |