Sha256: 9fb70c011d56a83271932dd3f7a1b19c6438f14eefb6ff7a6577196bc1c30878
Contents?: true
Size: 770 Bytes
Versions: 4
Compression:
Stored size: 770 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper.rb' # Time to add your specs! # http://rspec.info/ describe "Bare client" do it "exists" do client.should be_an(Etapper::Client) end it "is a singleton" do client.should_not respond_to(:new) end it "knows where to connect" do @dummy.expects(:endpoint_url).returns(Spec::TEST_URL) client.url.should == Spec::TEST_URL end it "knows its username" do client.username.should == 'etapper_sandbox' end it "knows its password" do client.password.should == 'mypass1234' end it "lets you set a password" do lambda{client.password = 'mypass1234'}.should_not raise_error end it "knows if it's connected" do client.should respond_to(:connected?) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
etapper-0.0.5 | spec/client_spec.rb |
etapper-0.0.4 | spec/client_spec.rb |
etapper-0.0.3 | spec/client_spec.rb |
etapper-0.0.2 | spec/client_spec.rb |