lib/pathway/rspec/matchers/fail_on.rb in pathway-0.10.0 vs lib/pathway/rspec/matchers/fail_on.rb in pathway-0.11.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'pathway/rspec/matchers/list_helpers'
RSpec::Matchers.define :fail_on do |input|
match do |operation|
@operation, @input = operation, input
@@ -49,10 +51,10 @@
as_sentence(failure_descriptions, connector: '; ', last_connector: '; and ')
end
end
failure_message_when_negated do
- 'Did not to expected operation to fail but it did'
+ 'Did not expected operation to fail but it did'
end
def failure?
result.failure?
end