mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
24 lines
612 B
Ruby
24 lines
612 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
require 'rails_helper'
|
||
|
|
||
|
describe RepositoryStatusValue do
|
||
|
let(:repository_status_value) { build :repository_status_value }
|
||
|
|
||
|
it 'is valid' do
|
||
|
expect(repository_status_value).to be_valid
|
||
|
end
|
||
|
|
||
|
describe 'Validations' do
|
||
|
describe '#repository_status_item' do
|
||
|
it { is_expected.to validate_presence_of(:repository_status_item) }
|
||
|
end
|
||
|
end
|
||
|
|
||
|
describe 'Associations' do
|
||
|
it { is_expected.to belong_to(:repository_status_item) }
|
||
|
it { is_expected.to belong_to(:created_by).optional }
|
||
|
it { is_expected.to belong_to(:last_modified_by).optional }
|
||
|
end
|
||
|
end
|