spec/page_examples.rb in spidr-0.2.1 vs spec/page_examples.rb in spidr-0.2.2
- old
+ new
@@ -10,8 +10,12 @@
it "should have a body" do
@page.body.should_not be_empty
end
it "should provide transparent access to the response headers" do
- @page.content_type.should == @page.content_type
+ @page.content_type.should == @page.response['Content-Type']
+ end
+
+ it "should allow content-types" do
+ @page.content_types.should_not be_empty
end
end