lib/matchers/match_tester.riml in speckle-0.1.26 vs lib/matchers/match_tester.riml in speckle-0.1.27

- old
+ new

@@ -6,14 +6,13 @@ match_item = matchers.get_match_item(matcher_name) negate = match_item.negate matcher = match_item.matcher actual = env.actual - tester = new g:MatchTester() - tester.test(matcher, negate, a:expected, actual) + self.test(matcher, negate, expected, actual) end - defm test(matcher, negate, expected, actual) + def test(matcher, negate, expected, actual) result = matcher.match(expected, actual) g:speckle_env.assertions += 1 if negate if result message = matcher.failure_message_for_mismatch(expected, actual)