1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Merge pull request #2553 from jalada/patch-1

Use #create not #make in README example
This commit is contained in:
Thomas Walpole 2022-05-22 09:34:14 -07:00 committed by GitHub
commit d08e88dadd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,7 +161,7 @@ You can now write your specs like so:
```ruby
describe "the signin process", type: :feature do
before :each do
User.make(email: 'user@example.com', password: 'password')
User.create(email: 'user@example.com', password: 'password')
end
it "signs me in" do
@ -192,7 +192,7 @@ Capybara also comes with a built in DSL for creating descriptive acceptance test
```ruby
feature "Signing in" do
background do
User.make(email: 'user@example.com', password: 'caplin')
User.create(email: 'user@example.com', password: 'caplin')
end
scenario "Signing in with correct credentials" do
@ -205,7 +205,7 @@ feature "Signing in" do
expect(page).to have_content 'Success'
end
given(:other_user) { User.make(email: 'other@example.com', password: 'rous') }
given(:other_user) { User.create(email: 'other@example.com', password: 'rous') }
scenario "Signing in as another user" do
visit '/sessions/new'