spec/page_examples.rb in spidr-0.4.1 vs spec/page_examples.rb in spidr-0.5.0

- old
+ new

@@ -2,20 +2,20 @@ require 'spec_helper' shared_examples_for "Page" do it "should have a status code" do - @page.code.should be_integer + expect(@page.code).to be_integer end it "should have a body" do - @page.body.should_not be_empty + expect(@page.body).not_to be_empty end it "should provide transparent access to the response headers" do - @page.content_type.should == @page.response['Content-Type'] + expect(@page.content_type).to eq(@page.response['Content-Type']) end it "should allow content-types" do - @page.content_types.should_not be_empty + expect(@page.content_types).not_to be_empty end end