spec/page_spec.rb in spidr-0.2.6 vs spec/page_spec.rb in spidr-0.2.7
- old
+ new
@@ -98,9 +98,16 @@
before(:all) do
@page = get_page('http://twitter.com/login')
end
it "should provide access to the raw Cookie" do
+ cookie = @page.raw_cookie
+
+ cookie.should_not be_nil
+ cookie.should_not be_empty
+ end
+
+ it "should still support the deprecated #cookie method" do
cookie = @page.cookie
cookie.should_not be_nil
cookie.should_not be_empty
end