mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 18:21:04 +08:00
14 lines
507 B
Ruby
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
|