Sha256: 717e50c9264bdceccc5cd6b8f67c917d6d7faec5cca995d5c818c98d8a5c6f81
Contents?: true
Size: 724 Bytes
Versions: 1
Compression:
Stored size: 724 Bytes
Contents
# encoding: utf-8 $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) if ENV['coverage'] raise "simplecov only works on Ruby 1.9" unless RUBY_VERSION =~ /^1\.9/ require 'simplecov' SimpleCov.start { add_filter "spec/" } end require 'rspec' require 'data_magic' RSpec::Matchers.define :have_field_value do |expected| supports_block_expectations match do |actual| actual['field'] === expected end failure_message do |actual| "expected '#{expected}' to equal the field value '#{actual['field']}'" end failure_message_when_negated do |actual| "expected '#{expected}' to not equal to field value '#{actual['field']}'" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
data_magic-1.2 | spec/spec_helper.rb |