X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..76d365ce71b942466d07480ded13098860d4f1b3:/test/models/diary_entry_test.rb?ds=sidebyside diff --git a/test/models/diary_entry_test.rb b/test/models/diary_entry_test.rb index ad863a7de..58e6513a6 100644 --- a/test/models/diary_entry_test.rb +++ b/test/models/diary_entry_test.rb @@ -1,19 +1,19 @@ -require 'test_helper' +require "test_helper" class DiaryEntryTest < ActiveSupport::TestCase api_fixtures fixtures :diary_entries, :diary_comments, :languages def test_diary_entry_count - assert_equal 5, DiaryEntry.count + assert_equal 6, DiaryEntry.count end def test_diary_entry_validations diary_entry_valid({}) - diary_entry_valid({ :title => '' }, false) - diary_entry_valid(:title => 'a' * 255) - diary_entry_valid({ :title => 'a' * 256 }, false) - diary_entry_valid({ :body => '' }, false) + diary_entry_valid({ :title => "" }, false) + diary_entry_valid(:title => "a" * 255) + diary_entry_valid({ :title => "a" * 256 }, false) + diary_entry_valid({ :body => "" }, false) diary_entry_valid(:latitude => 90) diary_entry_valid({ :latitude => 90.00001 }, false) diary_entry_valid(:latitude => -90) @@ -25,7 +25,7 @@ class DiaryEntryTest < ActiveSupport::TestCase end def test_diary_entry_visible - assert_equal 4, DiaryEntry.visible.count + assert_equal 5, DiaryEntry.visible.count assert_raise ActiveRecord::RecordNotFound do DiaryEntry.visible.find(diary_entries(:deleted_entry).id) end