scinote-web/test/models/notification_test.rb
2016-10-11 08:25:32 +02:00

14 lines
507 B
Ruby

require 'test_helper'
class NotificationTest < ActiveSupport::TestCase
should have_db_column(:title).of_type(:string)
should have_db_column(:message).of_type(:string)
should have_db_column(:type_of).of_type(:integer)
should have_db_column(:created_at).of_type(:datetime)
should have_db_column(:updated_at).of_type(:datetime)
should have_db_column(:generator_user_id)
should have_many(:user_notifications)
should have_many(:users)
should belong_to(:generator_user).class_name('User')
end