Sha256: 454ebb2525329ce30a6b265dcebfd67185cc7b653c2f2615cc3698b43837f84a
Contents?: true
Size: 1001 Bytes
Versions: 5
Compression:
Stored size: 1001 Bytes
Contents
require 'simplecov' SimpleCov.start do add_filter "spec/" end require 'yaml' require File.dirname(__FILE__) + "/../lib/pag_seguro" Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f} config = YAML.load_file(File.dirname(__FILE__) + "/pag_seguro/integration/config.yml") EMAIL = config["email"] TOKEN = config["token"] NOTIFICATION_CODE = config["notification_code"] TRANSACTION_ID = config["transaction_id"] 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
pag_seguro-0.4.1 | spec/spec_helper.rb |
pag_seguro-0.4.0 | spec/spec_helper.rb |
pag_seguro-0.3.2 | spec/spec_helper.rb |
pag_seguro-0.3.1 | spec/spec_helper.rb |
pag_seguro-0.3.0 | spec/spec_helper.rb |