]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/diary_entry_test.rb
Moved strings to locales + Added 'Issues' button + Fixed typo in tests
[rails.git] / test / models / diary_entry_test.rb
index ad863a7debe9f55330c550344aeb1fa49d2749f1..58e6513a642042069a4940a2686d3b82adac8634 100644 (file)
@@ -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