Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicklas committed Dec 31, 2012
1 parent fa780a6 commit 7045898
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/capybara/spec/session/current_url_spec.rb
Expand Up @@ -79,15 +79,15 @@ def visit_host_links
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

0 comments on commit 7045898

Please sign in to comment.