Sha256: 60fd2cbb37d3a35ed71b835ac8ff6368f826a7a17220afee980226199fa64c98
Contents?: true
Size: 763 Bytes
Versions: 2
Compression:
Stored size: 763 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_johntest' end it "knows its password" do client.password.should == 'mypass' end it "lets you set a password" do lambda{client.password = 'mypass'}.should_not raise_error end it "knows if it's connected" do client.should respond_to(:connected?) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
etapper-0.0.1 | spec/client_spec.rb |
etapper-0.0.0 | spec/client_spec.rb |