mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-09 00:49:07 +08:00
13 lines
406 B
Ruby
13 lines
406 B
Ruby
|
require 'test_helper'
|
||
|
|
||
|
class NotificationTest < ActiveSupport::TestCase
|
||
|
should have_db_column(:title).of_type(:string)
|
||
|
should have_db_column(:message).of_type(:text)
|
||
|
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_many(:user_notifications)
|
||
|
should have_many(:users)
|
||
|
end
|