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