spec/spec_helper.rb in data_magic-1.1 vs spec/spec_helper.rb in data_magic-1.2
- old
+ new
@@ -12,11 +12,12 @@
require 'rspec'
require 'data_magic'
RSpec::Matchers.define :have_field_value do |expected|
+ supports_block_expectations
match do |actual|
- actual['field'] == expected
+ actual['field'] === expected
end
failure_message do |actual|
"expected '#{expected}' to equal the field value '#{actual['field']}'"
end