about summary refs log tree commit diff
path: root/test/system/players_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/system/players_test.rb')
-rw-r--r--test/system/players_test.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/system/players_test.rb b/test/system/players_test.rb
index b00910c..69f08e9 100644
--- a/test/system/players_test.rb
+++ b/test/system/players_test.rb
@@ -14,33 +14,30 @@ class PlayersTest < ApplicationSystemTestCase
 
   test 'should create player' do
     visit players_url
-    click_on 'New player'
+    click_on 'Add a player'
 
     fill_in 'Name', with: @player.name
     check 'Paid' if @player.paid
     fill_in 'Strikes', with: @player.strikes
     click_on 'Create Player'
 
-    assert_text 'Player was successfully created'
-    click_on 'Back'
+    assert_text "Added #{@player.name}."
   end
 
   test 'should update Player' do
     visit player_url(@player)
-    click_on 'Edit this player', match: :first
 
     fill_in 'Name', with: @player.name
     check 'Paid' if @player.paid
     fill_in 'Strikes', with: @player.strikes
     click_on 'Update Player'
 
-    assert_text 'Player was successfully updated'
-    click_on 'Back'
+    assert_text "Updated #{@player.name}."
   end
 
   test 'should destroy Player' do
     visit player_url(@player)
-    click_on 'Destroy this player', match: :first
+    click_on "Delete #{@player.name}", match: :first
 
     assert_text 'Player was successfully destroyed'
   end