Sha256: 25e7046cb8eb04002bec1160db3233f5081477fd79639002ba2d9dd35b4dd446

Contents?: true

Size: 484 Bytes

Versions: 8

Compression:

Stored size: 484 Bytes

Contents

# encoding: UTF-8

$:.push(File.dirname(__FILE__))

require 'rspec'
require 'arel-helpers'
require 'fileutils'
require 'pry-nav'

require 'env'

def silence(&block)
  original_stdout = $stdout
  $stdout = StringIO.new
  begin
    yield
  ensure
    $stdout = original_stdout
  end
end

RSpec.configure do |config|
  config.mock_with :rr

  config.before(:each) do
    ArelHelpers::Env.establish_connection
    ArelHelpers::Env.reset
    silence { ArelHelpers::Env.migrate }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
arel-helpers-2.5.0 spec/spec_helper.rb
arel-helpers-2.4.0 spec/spec_helper.rb
arel-helpers-2.3.0 spec/spec_helper.rb
arel-helpers-2.2.0 spec/spec_helper.rb
arel-helpers-2.1.1 spec/spec_helper.rb
arel-helpers-2.1.0 spec/spec_helper.rb
arel-helpers-2.0.2 spec/spec_helper.rb
arel-helpers-2.0.1 spec/spec_helper.rb