Sha256: adbfc3f628aa1297bffe1bcca714b5080902c71b8cdbc703dacce1a214ba3629
Contents?: true
Size: 600 Bytes
Versions: 4
Compression:
Stored size: 600 Bytes
Contents
require 'spec_helper' describe Ivapi::Client::Server do before do Ivapi.configure do |config| config.username = 'foo' config.password = 'bar' config.hosting_id = 1 end end after do Ivapi.reset! end describe '#information' do let(:info) { Ivapi.hosting.information } before do stub_command('hosting_info', id: 1) .to_return(json_response('hosting_info.json')) end it 'has alias info method' do expect(Ivapi.hosting.info).to eq(info) end it 'has correct id' do expect(info.id).to eq('1') end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ivapi-1.5.0 | spec/ivapi/client/hosting_spec.rb |
ivapi-1.4.0 | spec/ivapi/client/hosting_spec.rb |
ivapi-1.3.0 | spec/ivapi/client/hosting_spec.rb |
ivapi-1.2.0 | spec/ivapi/client/hosting_spec.rb |