scinote-web/spec/models/repository_cell_spec.rb
2017-08-30 13:30:41 +02:00

22 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