Skip to content

Commit

Permalink
fix failing specs due to invalid css
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Feb 18, 2013
1 parent 4a5876d commit fb6c0ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/capybara/spec/session/within_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

context "with CSS selector" do
it "should click links in the given scope" do
@session.within(:css, "#for_bar li[contains('With Simple HTML')]") do
@session.within(:css, "#for_bar li", text: 'With Simple HTML') do
@session.click_link('Go')
end
@session.should have_content('Bar')
Expand Down Expand Up @@ -46,7 +46,7 @@

context "with Node rather than selector" do
it "should click links in the given scope" do
node_of_interest = @session.find(:css, "#for_bar li[contains('With Simple HTML')]")
node_of_interest = @session.find(:css, "#for_bar li", text: 'With Simple HTML')

@session.within(node_of_interest) do
@session.click_link('Go')
Expand All @@ -58,7 +58,7 @@
context "with the default selector set to CSS" do
before { Capybara.default_selector = :css }
it "should use CSS" do
@session.within("#for_bar li[contains('With Simple HTML')]") do
@session.within("#for_bar li", text: 'With Simple HTML') do
@session.click_link('Go')
end
@session.should have_content('Bar')
Expand Down

0 comments on commit fb6c0ce

Please sign in to comment.