lib/spectus/level/base.rb in spectus-2.1.3 vs lib/spectus/level/base.rb in spectus-2.2.0

- old
+ new

@@ -27,17 +27,17 @@ # @param state [Sandbox] The sandbox that tested the code. # # @return [Result::Pass] pass the spec. def pass!(state) - Result::Pass.new('passing spec', *result_signature(state)) + Result::Pass.new(*result_signature(state)) end # @param state [Sandbox] The sandbox that tested the code. # # @raise [Result::Fail] fail the spec. def fail!(state) - fail(Result::Fail.new('failing spec', *result_signature(state))) + fail Result::Fail.new(*result_signature(state)), 'failing spec' end # @param state [Sandbox] The sandbox that tested the code. # # @return [Array] list of parameters.