spec/support/driver_examples.rb in capybara-json-0.3.0 vs spec/support/driver_examples.rb in capybara-json-0.4.0
- old
+ new
@@ -67,20 +67,20 @@
shared_examples_for "driver with cookies support" do
describe "#reset!" do
it "should set and clean cookies" do
@driver.visit('/get_cookie')
- @driver.body.should_not include('test_cookie')
+ @driver.raw_json.should_not include('test_cookie')
@driver.visit('/set_cookie')
@driver.body.should include('Cookie set to test_cookie')
@driver.visit('/get_cookie')
@driver.body.should include('test_cookie')
@driver.reset!
@driver.visit('/get_cookie')
- @driver.body.should_not include('test_cookie')
+ @driver.raw_json.should_not include('test_cookie')
end
end
end
shared_examples_for "driver with infinite redirect detection" do