Sha256: e4d1dbc7e9929e31a60cce8d9c924da5d1b386f854369e359e8fe6a95941886c
Contents?: true
Size: 831 Bytes
Versions: 2
Compression:
Stored size: 831 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe "Method Proxying" do before(:each) do @client = Etapper::Client.instance @client.username = 'etapper_johntest' @client.password = 'mypass' end it "attempts to call methods on the driver if they aren't defined by the client" do @dummy.expects(:blah) @client.blah end it "passes any parameters it receives to the driver" do @dummy.expects(:blah).with(1, 'yo') @client.blah(1, 'yo') end it "tries to connect if it wasn't already" do @dummy.stubs(:logout) @client.disconnect @dummy.expects(:login).returns("") @dummy.expects(:blah) @client.blah end it "does not try to connect if it was already connected" do @dummy.expects(:login).never @dummy.expects(:blah) @client.blah end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
etapper-0.0.1 | spec/proxying_spec.rb |
etapper-0.0.0 | spec/proxying_spec.rb |