mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
20 lines
394 B
Ruby
20 lines
394 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
describe Settings, type: :model do
|
|
let(:settings) { build :settings }
|
|
|
|
it 'is valid' do
|
|
expect(settings).to be_valid
|
|
end
|
|
|
|
it 'should be of class Settings' do
|
|
expect(subject.class).to eq Settings
|
|
end
|
|
|
|
describe 'Database table' do
|
|
it { should have_db_column :type }
|
|
it { should have_db_column :values }
|
|
end
|
|
end
|