X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a7092491b069de43bb8d8c30d3526e7095c5cc98..425b79b5cc79273b2c74e65b224d44458f7863dc:/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