fix test descriptions

This commit is contained in:
Thomas Walpole 2016-06-23 09:20:05 -07:00
parent a59cb5b247
commit 2c10033789
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ Capybara::SpecHelper.spec '#has_text?' do
expect(@session).to have_text(:all, 'Some of this text is hidden!') expect(@session).to have_text(:all, 'Some of this text is hidden!')
end end
it "should be true if `Capybara.ignore_hidden_elements = true` and text is invisible." do it "should be true if `Capybara.ignore_hidden_elements = false` and text is invisible." do
Capybara.ignore_hidden_elements = false Capybara.ignore_hidden_elements = false
@session.visit('/with_html') @session.visit('/with_html')
expect(@session).to have_text('Some of this text is hidden!') expect(@session).to have_text('Some of this text is hidden!')
@ -280,7 +280,7 @@ Capybara::SpecHelper.spec '#has_no_text?' do
expect(@session).not_to have_no_text(:all, 'Some of this text is hidden!') expect(@session).not_to have_no_text(:all, 'Some of this text is hidden!')
end end
it "should be false if `Capybara.ignore_hidden_elements = true` and text is invisible." do it "should be false if `Capybara.ignore_hidden_elements = false` and text is invisible." do
Capybara.ignore_hidden_elements = false Capybara.ignore_hidden_elements = false
@session.visit('/with_html') @session.visit('/with_html')
expect(@session).not_to have_no_text('Some of this text is hidden!') expect(@session).not_to have_no_text('Some of this text is hidden!')