Sha256: caa70d7765a36dd64f31360189c9a8bbe9d39d512d28e33eb726072adefef060
Contents?: true
Size: 973 Bytes
Versions: 1
Compression:
Stored size: 973 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../spec/dummy/config/environment", __FILE__) if RUBY_VERSION.to_i >= 2 require 'byebug' else require 'debugger' end require 'gxapi' require 'rspec/rails' require 'capybara/rails' require 'rails/engine' require 'mocha/setup' require 'webmock/rspec' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} Mocha::Configuration.prevent(:stubbing_non_existent_method) RSpec.configure do |config| config.mock_with :mocha config.run_all_when_everything_filtered = true config.include Rails.application.routes.url_helpers config.infer_spec_type_from_file_location! config.filter_run focus: true config.before(:all) do Gxapi.logger = Logger.new(STDOUT) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gxapi_rails-0.1.0 | spec/spec_helper.rb |