diff options
| author | Gabriel Mazetto <brodock@gmail.com> | 2017-05-31 20:45:00 +0200 |
|---|---|---|
| committer | Gabriel Mazetto <brodock@gmail.com> | 2017-05-31 20:45:00 +0200 |
| commit | 0d4d9a6a63b2ac60ffeeeaef389295919c3119f4 (patch) | |
| tree | e16ced93cbb4c2f41baee6b4900c4810f47cf2ad /spec/support | |
| parent | d219f9a691973708f70d9517765a2ec926d6d903 (diff) | |
| download | gitlab-ce-0d4d9a6a63b2ac60ffeeeaef389295919c3119f4.tar.gz | |
Refactor and move things around to improve in YAGNI perspective
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/matchers/execute_check.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/support/matchers/execute_check.rb b/spec/support/matchers/execute_check.rb index 9664eb3879d..7232fad52fb 100644 --- a/spec/support/matchers/execute_check.rb +++ b/spec/support/matchers/execute_check.rb @@ -14,6 +14,10 @@ RSpec::Matchers.define :execute_check do |expected| end failure_message do |actual| - return 'This matcher must be used with SystemCheck' unless actual == SystemCheck + 'This matcher must be used with SystemCheck' unless actual == SystemCheck + end + + failure_message_when_negated do |actual| + 'This matcher must be used with SystemCheck' unless actual == SystemCheck end end |
