Sha256: 4068867086fba0b8393507e4f1ad21e56436eb245658c9c115ebf0b9408c6ba3

Contents?: true

Size: 601 Bytes

Versions: 1

Compression:

Stored size: 601 Bytes

Contents

require 'rspec'
require 'simplecov'

SimpleCov.start
require File.join(File.dirname(__FILE__), '..', 'lib', 'finite')
Dir[File.dirname(__FILE__) + "/models/*.rb"].sort.each { |f| require File.expand_path(f) }

RSpec.configure do |config|
  original_stderr = $stderr
  original_stdout = $stdout
  config.before(:all) do
    # Redirect stderr and stdout
    $stderr = File.new(File.join(File.dirname(__FILE__), 'null.txt'), 'w')
    $stdout = File.new(File.join(File.dirname(__FILE__), 'null.txt'), 'w')
  end
  config.after(:all) do
    $stderr = original_stderr
    $stdout = original_stdout
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
finite-1.0.0 spec/spec_helper.rb