spec/relax/service_spec.rb in relax-0.1.0 vs spec/relax/service_spec.rb in relax-0.1.1

- old
+ new

@@ -3,9 +3,20 @@ describe Relax::Service do it "allows contextual defaults to be set" do Relax::Service.should respond_to(:defaults) end + describe "#authenticate" do + it "is callable from within a Service" do + Relax::Service.new.should respond_to(:authenticate) + end + + it "returns the service" do + service = Relax::Service.new + service.authenticate('username', 'password').should == service + end + end + describe ".endpoint" do it "is callable from within a Service" do Relax::Service.should respond_to(:endpoint) end