Sha256: 68962ffdeb105db2d719ec197e63a99a2a2e8e4555ccfb24c407d4f46bfb8675
Contents?: true
Size: 706 Bytes
Versions: 22
Compression:
Stored size: 706 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| match do |actual| actual['field'] == expected end failure_message_for_should do |actual| "expected '#{expected}' to equal the field value '#{actual['field']}'" end failure_message_for_should_not do |actual| "expected '#{expected}' to not equal to field value '#{actual['field']}'" end end
Version data entries
22 entries across 22 versions & 1 rubygems