X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/80427b3e5e5ebeecbc0a57a1549a2a33e0c92199..92ca4069957666065194e0b63de5b46261b8a21d:/test/controllers/diary_entries_controller_test.rb diff --git a/test/controllers/diary_entries_controller_test.rb b/test/controllers/diary_entries_controller_test.rb index 8414e18a7..0f071914e 100644 --- a/test/controllers/diary_entries_controller_test.rb +++ b/test/controllers/diary_entries_controller_test.rb @@ -4,6 +4,7 @@ class DiaryEntriesControllerTest < ActionController::TestCase include ActionView::Helpers::NumberHelper def setup + super # Create the default language for diary entries create(:language, :code => "en") # Stub nominatim response for diary entry locations @@ -872,7 +873,7 @@ class DiaryEntriesControllerTest < ActionController::TestCase get :comments, :params => { :display_name => user.display_name } assert_response :success assert_template :comments - assert_select "table.messages" do + assert_select "table.table-striped" do assert_select "tr", :count => 1 # header, no comments end @@ -882,7 +883,7 @@ class DiaryEntriesControllerTest < ActionController::TestCase get :comments, :params => { :display_name => other_user.display_name } assert_response :success assert_template :comments - assert_select "table.messages" do + assert_select "table.table-striped" do assert_select "tr", :count => 2 # header and one comment end