X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b6163f0fc29740b4d9953a8c1fe47875ce2ecab0..561f2f694adc8ac57011eac1eec5929425276c59:/test/functional/diary_entry_controller_test.rb diff --git a/test/functional/diary_entry_controller_test.rb b/test/functional/diary_entry_controller_test.rb index 7981edd95..724fb48a5 100644 --- a/test/functional/diary_entry_controller_test.rb +++ b/test/functional/diary_entry_controller_test.rb @@ -159,7 +159,9 @@ class DiaryEntryControllerTest < ActionController::TestCase assert_select "input#latitude[name='diary_entry[latitude]']", :count => 1 assert_select "input#longitude[name='diary_entry[longitude]']", :count => 1 assert_select "input[name=commit][type=submit][value=Save]", :count => 1 - assert_select "input", :count => 5 + assert_select "input[name=commit][type=submit][value=Edit]", :count => 1 + assert_select "input[name=commit][type=submit][value=Preview]", :count => 1 + assert_select "input", :count => 7 end end end