Sha256: 5b8bcece6a954a1e0f90f5d13a8f3d99975a650f971e27878c027380c6b3604d
Contents?: true
Size: 689 Bytes
Versions: 6
Compression:
Stored size: 689 Bytes
Contents
require 'helper' describe Lelylan::Client do let(:client) do a_client end describe '#api_endpoint' do after(:each) do Lelylan.reset end it 'sets default to http://api.lelylan.com' do client = Lelylan::Client.new client.api_endpoint.should == 'http://api.lelylan.com/' end it 'can be set' do Lelylan.api_endpoint = 'http://lelylan.dev' client = Lelylan::Client.new client.api_endpoint.should == 'http://lelylan.dev/' end it 'can use the alias endpoint' do Lelylan.endpoint = 'http://lelylan.dev' client = Lelylan::Client.new client.endpoint.should == 'http://lelylan.dev/' end end end
Version data entries
6 entries across 6 versions & 1 rubygems