-
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.
Add system test for adoptions resource
- Loading branch information
Joao Marcos
committed
Sep 27, 2020
1 parent
d24e45e
commit d326e66
Showing
1 changed file
with
17 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
require 'application_system_test_case' | ||
|
||
class AdoptionsTest < ApplicationSystemTestCase | ||
test 'marking an animal as adopted' do | ||
visit animals_url | ||
|
||
click_on 'Mark as adopted', match: :first | ||
|
||
fill_in 'Adopter name', with: 'John' | ||
fill_in 'Adoption date', with: '05/09/2020' | ||
|
||
click_on 'Mark as adopted' | ||
|
||
assert_text 'Pet was successfully marked as adopted' | ||
end | ||
end | ||
|