formatting

This commit is contained in:
Jonas Nicklas 2012-12-30 15:05:41 +01:00
parent fa780a6a1c
commit 70458987e5
1 changed files with 10 additions and 10 deletions

View File

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