Sha256: 56b73776f9f73c10abbe605705e540c9815b6528ffbc04dbd6e659b80927e93c

Contents?: true

Size: 413 Bytes

Versions: 6

Compression:

Stored size: 413 Bytes

Contents

RSpec::Matchers.define :equal_at_cell do |expected, row, col|
  match do |actual|
    actual == expected
  end

  failure_message_for_should do |actual|
    "expected #{actual} to equal #{expected} (row:#{row}, cell:#{col})"
  end

  failure_message_for_should_not do |actual|
    "expected #{actual} not to equal #{expected} (row:#{row}, cell:#{col})"
  end

  description do
    "to equal #{expected}"
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
timcharper-jruby-poi-0.9.1 spec/support/matchers/cell_matcher.rb
jruby-poi-0.9.0 spec/support/matchers/cell_matcher.rb
nurettin-jruby-poi-0.8.2 spec/support/matchers/cell_matcher.rb
jruby-poi-0.8.2 spec/support/matchers/cell_matcher.rb
jruby-poi-0.7.2 specs/support/matchers/cell_matcher.rb
jruby-poi-0.7.1 specs/support/matchers/cell_matcher.rb