1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

formatting

This commit is contained in:
Jonas Nicklas 2012-12-30 15:05:41 +01:00
parent fa780a6a1c
commit 70458987e5

View file

@ -79,15 +79,15 @@ Capybara::SpecHelper.spec '#current_url, #current_path, #current_host' do
should_be_on 0, "/landed" should_be_on 0, "/landed"
end end
it "is affected by pushState", :requires => [:js] do it "is affected by pushState", :requires => [:js] do
@session.visit("/with_js") @session.visit("/with_js")
@session.execute_script("window.history.pushState({}, '', '/pushed')") @session.execute_script("window.history.pushState({}, '', '/pushed')")
@session.current_path.should == "/pushed" @session.current_path.should == "/pushed"
end end
it "is affected by replaceState", :requires => [:js] do it "is affected by replaceState", :requires => [:js] do
@session.visit("/with_js") @session.visit("/with_js")
@session.execute_script("window.history.replaceState({}, '', '/replaced')") @session.execute_script("window.history.replaceState({}, '', '/replaced')")
@session.current_path.should == "/replaced" @session.current_path.should == "/replaced"
end end
end end