Skip to content

Commit

Permalink
Merge pull request teamcapybara#1102 from aceofbassgreg/Updating_README
Browse files Browse the repository at this point in the history
Adding rspec's 'expect' syntax to examples in documentation
  • Loading branch information
jnicklas committed Jun 15, 2013
2 parents 41c0039 + 06c4497 commit 89ba2c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down Expand Up @@ -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') }
Expand All @@ -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
```
Expand Down

0 comments on commit 89ba2c6

Please sign in to comment.