Add paper validation tests

This commit is contained in:
Lars Henrik Mai 2015-09-27 10:25:40 +02:00
parent 520a2dbf48
commit ffab044a02
3 changed files with 19 additions and 4 deletions

16
test/models/paper_test.rb Normal file
View file

@ -0,0 +1,16 @@
require 'test_helper'
class PaperTest < ActiveSupport::TestCase
context "Validations" do
should validate_presence_of(:body)
should validate_presence_of(:content)
should validate_presence_of(:name)
should validate_presence_of(:originator)
should validate_presence_of(:paper_type)
should validate_presence_of(:reference)
should validate_presence_of(:url)
should validate_presence_of(:published_at)
end
end