diff options
Diffstat (limited to 'spec/models/ci/build_pending_state_spec.rb')
-rw-r--r-- | spec/models/ci/build_pending_state_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/models/ci/build_pending_state_spec.rb b/spec/models/ci/build_pending_state_spec.rb index bff0b35f878..c978e3dba36 100644 --- a/spec/models/ci/build_pending_state_spec.rb +++ b/spec/models/ci/build_pending_state_spec.rb @@ -3,10 +3,15 @@ require 'spec_helper' RSpec.describe Ci::BuildPendingState, feature_category: :continuous_integration do + describe 'associations' do + it do + is_expected.to belong_to(:build).class_name('Ci::Build').with_foreign_key(:build_id).inverse_of(:pending_state) + end + end + describe 'validations' do subject(:pending_state) { build(:ci_build_pending_state) } - it { is_expected.to belong_to(:build) } it { is_expected.to validate_presence_of(:build) } end |