diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-08-31 18:17:56 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-09-04 15:55:26 +0300 |
commit | d614c431055286eaab3b82e810186ac19a2c4fd7 (patch) | |
tree | 1cd600d5212471e79f295c310e736b2545fc6add /spec/models/ci | |
parent | cff104ec4b0dd2c53ed907ab7ca423b7c587dee8 (diff) |
Fix trigger_request.variables
Diffstat (limited to 'spec/models/ci')
-rw-r--r-- | spec/models/ci/trigger_request_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/ci/trigger_request_spec.rb b/spec/models/ci/trigger_request_spec.rb index 32d6f835c73..7dcf3528f73 100644 --- a/spec/models/ci/trigger_request_spec.rb +++ b/spec/models/ci/trigger_request_spec.rb @@ -5,13 +5,13 @@ describe Ci::TriggerRequest do it 'be invalid if saving a variable' do trigger = build(:ci_trigger_request, variables: { TRIGGER_KEY_1: 'TRIGGER_VALUE_1' } ) - expect(trigger.valid?).to be_falsey + expect(trigger).not_to be_valid end it 'be valid if not saving a variable' do trigger = build(:ci_trigger_request) - expect(trigger.valid?).to be_truthy + expect(trigger).to be_valid end end end |