Sha256: cf16f8fa41c239ce6fc49aa8a9ccf928af1d5036713e29477e7f44d2ce983604
Contents?: true
Size: 1.14 KB
Versions: 5
Compression:
Stored size: 1.14 KB
Contents
# Configure Rails Envinronment ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rails/test_help" require "rspec/rails" Rails.backtrace_cleaner.remove_silencers! # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| # Remove this line if you don't want RSpec's should and should_not # methods or matchers require 'rspec/expectations' config.include RSpec::Matchers # == Mock Framework config.mock_with :rspec end require 'savon' Savon.configure do |config| config.log = false # disable logging end HTTPI.logger = Logger.new(open("/dev/null", 'w')) HTTPI.adapter = :rack HTTPI::Adapters::Rack.mount 'app', Dummy::Application Dummy::Application.routes.draw do wash_out :api end def client Savon::Client.new do wsdl.document = 'http://app/api/wsdl' end end def mock_controller(&block) Object.send :remove_const, :ApiController if defined?(ApiController) Object.send :const_set, :ApiController, Class.new(ApplicationController) { include WashOut::SOAP class_exec &block if block } end
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
nogara-wash_out-0.5.2 | spec/spec_helper.rb |
wash_out-0.5.2 | spec/spec_helper.rb |
wash_out-0.4.2 | spec/spec_helper.rb |
wash_out-0.4.1 | spec/spec_helper.rb |
wash_out-0.4.0 | spec/spec_helper.rb |