Sha256: b0b2abf82c0794398034d2d27e227a81c8b8e225c9ab7830e77e7667f73879aa

Contents?: true

Size: 838 Bytes

Versions: 3

Compression:

Stored size: 838 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__)

require 'gxapi'

require 'rspec/rails'
require 'capybara/rails'
require 'rails/engine'
require 'mocha/setup'

# 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.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true

  config.filter_run focus: true

  config.before(:all) do
    Gxapi.logger = Logger.new(STDOUT)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gxapi_rails-0.0.4 spec/spec_helper.rb
gxapi_rails-0.0.3 spec/spec_helper.rb
gxapi_rails-0.0.2 spec/spec_helper.rb