Sha256: a03d30a99502a298f55398d84a0546d2b89433be8a71cd94e431b91316706784
Contents?: true
Size: 705 Bytes
Versions: 6
Compression:
Stored size: 705 Bytes
Contents
require 'simplecov' SimpleCov.start do add_filter "spec/" end require 'yaml' require File.dirname(__FILE__) + "/../lib/pag_seguro" class HaveAttributeAccessor def initialize(attribute) @attribute = attribute end def matches?(target) @target = target @target.respond_to?(:"#{@attribute}").should == true @target.respond_to?(:"#{@attribute}=").should == true end def failure_message "expected #{@target.inspect} to have '#{@expected}' attribute accessor" end def negative_failure_message "expected #{@target.inspect} not to have '#{@expected}' attribute accessor" end end def have_attribute_accessor(attribute) HaveAttributeAccessor.new(attribute) end
Version data entries
6 entries across 6 versions & 1 rubygems