Skip to content
Browse files

Adding rspec's 'expect' syntax to examples in documentation

  • Loading branch information...
1 parent 41c0039 commit 06c4497c0ad44a716437c13568a1d6c56c5b215e @aceofbassgreg aceofbassgreg committed Jun 14, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
6 README.md
@@ -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 => 'other@example.com', :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
```

0 comments on commit 06c4497

Please sign in to comment.
Something went wrong with that request. Please try again.