Sha256: 23c2d1f0208b170c310e9980bd1f87bbb05d38f4081c140ee7ae1ca29dcfce80
Contents?: true
Size: 692 Bytes
Versions: 5
Compression:
Stored size: 692 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 'fig_magic' RSpec::Matchers.define :have_field_value do |expected| 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
fig_magic-0.5 | spec/spec_helper.rb |
fig_magic-0.4 | spec/spec_helper.rb |
fig_magic-0.3 | spec/spec_helper.rb |
fig_magic-0.2 | spec/spec_helper.rb |
fig_magic-0.1 | spec/spec_helper.rb |