forked from teamcapybara/capybara
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request teamcapybara#1102 from aceofbassgreg/Updating_README
Adding rspec's 'expect' syntax to examples in documentation
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,7 +108,7 @@ describe "the signin process", :type => :feature do | |
fill_in 'Password', :with => 'password' | ||
end | ||
click_link 'Sign in' | ||
page.should have_content 'Success' | ||
expect(page).to have_content 'Success' | ||
end | ||
end | ||
``` | ||
|
@@ -139,7 +139,7 @@ feature "Signing in" do | |
fill_in 'Password', :with => 'caplin' | ||
end | ||
click_link 'Sign in' | ||
page.should have_content 'Success' | ||
expect(page).to have_content 'Success' | ||
end | ||
|
||
given(:other_user) { User.make(:email => '[email protected]', :password => 'rous') } | ||
|
@@ -151,7 +151,7 @@ feature "Signing in" do | |
fill_in 'Password', :with => other_user.password | ||
end | ||
click_link 'Sign in' | ||
page.should have_content 'Invalid email or password' | ||
expect(page).to have_content 'Invalid email or password' | ||
end | ||
end | ||
``` | ||
|