Skip to content

Commit

Permalink
Add system test for adoptions resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao Marcos committed Sep 27, 2020
1 parent d24e45e commit d326e66
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/system/adoptions_test.rb
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

0 comments on commit d326e66

Please sign in to comment.