summaryrefslogtreecommitdiff
path: root/spec/support/matchers
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2017-05-31 20:45:00 +0200
committerGabriel Mazetto <brodock@gmail.com>2017-05-31 20:45:00 +0200
commit0d4d9a6a63b2ac60ffeeeaef389295919c3119f4 (patch)
treee16ced93cbb4c2f41baee6b4900c4810f47cf2ad /spec/support/matchers
parentd219f9a691973708f70d9517765a2ec926d6d903 (diff)
downloadgitlab-ce-0d4d9a6a63b2ac60ffeeeaef389295919c3119f4.tar.gz
Refactor and move things around to improve in YAGNI perspective
Diffstat (limited to 'spec/support/matchers')
-rw-r--r--spec/support/matchers/execute_check.rb6
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