Sha256: 92787dc1974bed342e927fb3f33ff643619a4aed923d2b4e2f598cf6aef98df1

Contents?: true

Size: 466 Bytes

Versions: 2

Compression:

Stored size: 466 Bytes

Contents

# encoding: UTF-8

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

require 'rspec'
require 'arel-helpers'
require 'fileutils'

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

2 entries across 2 versions & 1 rubygems

Version Path
arel-helpers-2.11.0 spec/spec_helper.rb
arel-helpers-2.10.0 spec/spec_helper.rb