spec/unit/requests/authorization_spec.rb in restfulness-0.3.2 vs spec/unit/requests/authorization_spec.rb in restfulness-0.3.3

- old
+ new

@@ -15,17 +15,17 @@ describe "#authorization" do it "should be nil if no authorization header resent" do auth = request.authorization - auth.should be_nil + expect(auth).to be_nil end it "should build new authorization header when present" do request.headers[:authorization] = "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" auth = request.authorization - auth.should be_a(Restfulness::Requests::AuthorizationHeader) - auth.schema.should eql("Basic") + expect(auth).to be_a(Restfulness::Requests::AuthorizationHeader) + expect(auth.schema).to eql("Basic") end end end