Sha256: fea961739afecd343139cc14ab0b1cfa2598d27e3c443857fe0d633014800998
Contents?: true
Size: 1.52 KB
Versions: 1
Compression:
Stored size: 1.52 KB
Contents
require 'spec_helper' require 'eveapi' describe EVEApi do context 'whithout auth' do it "there should be a connection class" do expect { EVEApi::Client.new }.not_to raise_error end it "connection instance variable should be of class Excon::Connection" do expect(EVEApi::Client.new.connection).to be_a(Excon::Connection) end it "check_path method should return an empty string when name contains of 1 part" do expect(EVEApi::Client.new.check_path('name')).to eq('') end it "check_path method should return a path string when name contains of 2 or more parts" do expect(EVEApi::Client.new.check_path('name_name')).to be_a(String) expect(EVEApi::Client.new.check_path('name_name')).not_to be_empty end it "params should return an empty hash when no param variables present" do expect(EVEApi::Client.new.params).to be_a(Hash) expect(EVEApi::Client.new.params).to be_empty end it "calling a method present in the EVEApi should success" do expect { EVEApi::Client.new.server_server_status }.not_to raise_error end it "calling a method not present in the EVEApi should fail" do expect { EVEApi::Client.new.some_bs_method }.to raise_error(RuntimeError) end it "calling api_methods should return an Array of method symobls" do expect(EVEApi::Client.new.api_methods).to be_an(Array) end end end describe EVEApi::Request do it 'there should be a EVEApi::Response class' do expect { EVEApi::Request }.not_to raise_error end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eveapi-0.0.1.pre | spec/eveapi_spec.rb |