scinote-web/spec/models/repository_cell_spec.rb

22 lines
613 B
Ruby
Raw Normal View History

2017-08-30 00:49:07 +08:00
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