mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
formatting
This commit is contained in:
parent
fa780a6a1c
commit
70458987e5
1 changed files with 10 additions and 10 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue