update gemfile

This commit is contained in:
Eliott Appleford 2014-07-05 02:19:51 +01:00
parent e2e3c1e3fb
commit 5897c4c4a4
2 changed files with 29 additions and 31 deletions

View file

@ -68,29 +68,29 @@ When /^I go to "([^\"]*)"$/ do |url|
end
Then /^going to "([^\"]*)" should not raise an exception$/ do |url|
lambda { @browser.get(URI.escape(url)) }.should_not raise_exception
expect(lambda { @browser.get(URI.escape(url)) }).to_not raise_exception
end
Then /^the content type should be "([^\"]*)"$/ do |expected|
@browser.last_response.content_type.should start_with(expected)
expect(@browser.last_response.content_type).to start_with(expected)
end
Then /^I should see "([^\"]*)"$/ do |expected|
@browser.last_response.body.should include(expected)
expect(@browser.last_response.body).to include(expected)
end
Then /^I should see '([^\']*)'$/ do |expected|
@browser.last_response.body.should include(expected)
expect(@browser.last_response.body).to include(expected)
end
Then /^I should see:$/ do |expected|
@browser.last_response.body.should include(expected)
expect(@browser.last_response.body).to include(expected)
end
Then /^I should not see "([^\"]*)"$/ do |expected|
@browser.last_response.body.should_not include(expected)
expect(@browser.last_response.body).to_not include(expected)
end
Then /^I should see "([^\"]*)" lines$/ do |lines|
@browser.last_response.body.chomp.split($/).length.should == lines.to_i
expect(@browser.last_response.body.chomp.split($/).length).to eq(lines.to_i)
end