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

- old
+ new

@@ -8,29 +8,29 @@ Restfulness::Requests::AuthorizationHeader end it "should accept standard header" do obj = klass.new("Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==") - obj.schema.should eql("Basic") - obj.params.should eql("QWxhZGRpbjpvcGVuIHNlc2FtZQ==") + expect(obj.schema).to eql("Basic") + expect(obj.params).to eql("QWxhZGRpbjpvcGVuIHNlc2FtZQ==") end it "should accept non-standard schema" do obj = klass.new("bAsic QWxhZGRpbjpvcGVuIHNlc2FtZQ==") - obj.schema.should eql("Basic") - obj.params.should eql("QWxhZGRpbjpvcGVuIHNlc2FtZQ==") + expect(obj.schema).to eql("Basic") + expect(obj.params).to eql("QWxhZGRpbjpvcGVuIHNlc2FtZQ==") end it "should ignore any whitespace" do obj = klass.new(" Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== ") - obj.schema.should eql("Basic") - obj.params.should eql("QWxhZGRpbjpvcGVuIHNlc2FtZQ==") + expect(obj.schema).to eql("Basic") + expect(obj.params).to eql("QWxhZGRpbjpvcGVuIHNlc2FtZQ==") end it "should append additional stuff" do obj = klass.new("Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== foooo") - obj.schema.should eql("Basic") - obj.params.should eql("QWxhZGRpbjpvcGVuIHNlc2FtZQ== foooo") + expect(obj.schema).to eql("Basic") + expect(obj.params).to eql("QWxhZGRpbjpvcGVuIHNlc2FtZQ== foooo") end end end