mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 20:24:43 +08:00
21 lines
613 B
Ruby
21 lines
613 B
Ruby
require 'rails_helper'
|
|
|
|
describe RepositoryCell, type: :model do
|
|
it 'should be of class RepositoryCell' do
|
|
expect(subject.class).to eq RepositoryCell
|
|
end
|
|
|
|
describe 'Database table' do
|
|
it { should have_db_column :repository_row_id }
|
|
it { should have_db_column :repository_column_id }
|
|
it { should have_db_column :value_id }
|
|
it { should have_db_column :value_type }
|
|
it { should have_db_column :created_at }
|
|
it { should have_db_column :updated_at }
|
|
end
|
|
|
|
describe 'Relations' do
|
|
it { should belong_to :repository_row }
|
|
it { should belong_to :repository_column }
|
|
end
|
|
end
|