Sha256: 20acfaf9266bb47420ec953191b4006e87a6d6e5b60b77707d1dfb70204b6cf5
Contents?: true
Size: 654 Bytes
Versions: 4
Compression:
Stored size: 654 Bytes
Contents
require 'spec_helper' describe Flinks::Client do describe "#initialize" do it "without required arguments" do expect { Flinks::Client.new }.to raise_error KeyError end it "with required arguments" do client = Flinks::Client.new(customer_id: 'token') expect(client.customer_id).to eq('token') end it "sets defaults" do client = Flinks::Client.new(customer_id: 'token') expect(client.api_endpoint).not_to be_nil expect(client.user_agent).not_to be_nil expect(client.on_error).not_to be_nil expect(client.debug).not_to be_nil expect(client.raw).not_to be_nil end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
flinks-0.5.2 | spec/lib/client_spec.rb |
flinks-0.5.1 | spec/lib/client_spec.rb |
flinks-0.5.0 | spec/lib/client_spec.rb |
flinks-0.4.2 | spec/lib/client_spec.rb |