Sha256: 77553dcec5757bafe6eb6e9a14809e7d6317536bb6e9018f2e1a351cb2140267
Contents?: true
Size: 824 Bytes
Versions: 3
Compression:
Stored size: 824 Bytes
Contents
require "lambom" require "lambom/api" describe Lambom::ApiClient do conf = Lambom::Config.new.load conf.merge(environment: "production", server: "4586273f-f17a-4984-99ef-69c255e1b395", 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lambom-0.3.5 | spec/api_client_spec.rb |
lambom-0.3.1 | spec/api_client_spec.rb |
lambom-0.3.0 | spec/api_client_spec.rb |