spec/postalmethods_spec.rb in postalmethods-1.0.1 vs spec/postalmethods_spec.rb in postalmethods-1.1.0

- old
+ new

@@ -1,26 +1,11 @@ require File.dirname(__FILE__) + '/spec_helper.rb' -describe "Client" do +# Time to add your specs! +# http://rspec.info/ +describe "Place your specs here" do - it "should instantiate a client with a username and password" do - c = PostalMethods::Client.new(PM_OPTS) - c.class.should == PostalMethods::Client + it "find this spec in spec directory" do + violated "Be sure to write your specs" end - it "should fail without a user/pass on instantiation" do - lambda {PostalMethods::Client.new()}.should raise_error(PostalMethods::NoCredentialsException) - end - - it "should create a driver client thru the factory" do - c = PostalMethods::Client.new(PM_OPTS) - c.prepare! - c.rpc_driver.class.should == SOAP::RPC::Driver - end - - it "should raise a connection error exception when the api is unreachable" do - c = PostalMethods::Client.new(PM_OPTS) - c.stubs(:api_uri).returns("http://invaliduri.tld/api_endpoint.wtf?") - lambda {c.prepare!}.should raise_error(PostalMethods::NoConnectionError) - end - end