Load user and language fixtures for diary model tests
authorTom Hughes <tom@compton.nu>
Wed, 19 Oct 2016 11:17:20 +0000 (12:17 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 19 Oct 2016 11:17:20 +0000 (12:17 +0100)
test/models/diary_comment_test.rb
test/models/diary_entry_test.rb

index aa03dc66c485810834beb1e7a5ce246567e7be84..aeb054a02536a05d6f02d077b0366da380065aff 100644 (file)
@@ -1,6 +1,8 @@
 require "test_helper"
 
 class DiaryCommentTest < ActiveSupport::TestCase
+  fixtures :users, :languages
+
   test "body must be present" do
     comment = build(:diary_comment, :body => "")
     assert_not comment.valid?
index 5586b74d2e7b5d0c939e8ce50ae50199689daa9f..958ca403fc1ed6e1ff8da9f4dcd33d83b08befef 100644 (file)
@@ -1,6 +1,8 @@
 require "test_helper"
 
 class DiaryEntryTest < ActiveSupport::TestCase
+  fixtures :users, :languages
+
   def test_diary_entry_validations
     diary_entry_valid({})
     diary_entry_valid({ :title => "" }, false)