spec/support/matchers/cell_matcher.rb in jruby-poi-0.9.0 vs spec/support/matchers/cell_matcher.rb in jruby-poi-1.0.0
- old
+ new
@@ -1,17 +1,17 @@
RSpec::Matchers.define :equal_at_cell do |expected, row, col|
match do |actual|
actual == expected
end
- failure_message_for_should do |actual|
+ failure_message do |actual|
"expected #{actual} to equal #{expected} (row:#{row}, cell:#{col})"
end
- failure_message_for_should_not do |actual|
+ failure_message_when_negated do |actual|
"expected #{actual} not to equal #{expected} (row:#{row}, cell:#{col})"
end
description do
"to equal #{expected}"
end
-end
\ No newline at end of file
+end