X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..283d04a117bad672862c26ac09c2f82cbbfecc59:/test/models/diary_entry_test.rb 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