Sha256: c73936d2b43535d71b57d40adcc644582c1dc35f38c3521cba5b469c11340809
Contents?: true
Size: 825 Bytes
Versions: 5
Compression:
Stored size: 825 Bytes
Contents
require "lambom" require "lambom/api" describe Lambom::ApiClient do conf = Lambom::Config.new.load conf.merge(environment: 'development', server: '61a75d44-9856-4e64-a269-f95a232c9bcd', private_key_file: "spec/private_key.pem") api = Lambom::ApiClient.new(conf) it "must be an ApiClient object" do expect(api).to be_an_instance_of(Lambom::ApiClient) end describe "getAttributes" do it "must connect to riyic api" do expect(api.get_server_config).to match(/^\{.+\}$/) end it "must fail to connect to api" do conf.merge(server: "61a75d44-9856-4e64-a269-111111111111") api2 = Lambom::ApiClient.new(conf) expect{api2.get_server_config}.to raise_error(/api error/) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
lambom-0.2.2 | spec/api_client_spec.rb |
lambom-0.2.1 | spec/api_client_spec.rb |
lambom-0.2.0 | spec/api_client_spec.rb |
lambom-0.1.2 | spec/api_client_spec.rb |
lambom-0.1.1 | spec/api_client_spec.rb |