spec/unit/resources/authentication_spec.rb in restfulness-0.3.2 vs spec/unit/resources/authentication_spec.rb in restfulness-0.3.3

- old
+ new

@@ -26,11 +26,11 @@ it "should run block and provide user and password" do obj = AuthResource.new(request, response) expect { |b| obj.authenticate_with_http_basic(&b) }.to yield_control obj.authenticate_with_http_basic do |username, password| - username.should eql('Aladdin') - password.should eql('open sesame') + expect(username).to eql('Aladdin') + expect(password).to eql('open sesame') end end it "should not run block if no authorization header" do request.headers[:authorization] = nil