Sha256: 04318f7ab3f625988c1a82fc13988d71802fd735c8900b8ba78590a97ac3c2a2
Contents?: true
Size: 1.16 KB
Versions: 10
Compression:
Stored size: 1.16 KB
Contents
require 'rubygems' require "bundler/setup" require 'flexmock' require 'net/http' require 'net/https' Bundler.require :default, :test require 'rspec' require 'timecop' require 'eloqua' require 'savon_spec' unless defined?(ELOQUA_LIB) ELOQUA_LIB = File.dirname(__FILE__) + '/../lib' $: << ELOQUA_LIB end Dir[File.dirname(__FILE__) + '/support/**/*.rb'].each {|support| require support} Dir[File.dirname(__FILE__) + '/shared/**/*.rb'].each {|support| require support} Savon.configure do |config| config.log = false config.raise_errors = false end RSpec.configure do |config| include Eloqua::RSpec::Helper Savon::Spec::Fixture.path = File.dirname(__FILE__) + '/fixtures/' config.mock_with :flexmock config.before do # This is for adding actual authentication details. # The core tests do not actually need to login as they # operate on fixtures but we need to get the fixture data # in the first place and for that valid authenticate is needed initializer = File.dirname(__FILE__) + '/../eloqua_initializer.rb' if(File.exist?(initializer)) load initializer else Eloqua.authenticate('company\\user', 'pass') end end end
Version data entries
10 entries across 10 versions & 1 rubygems