Sha256: f231eafbc04b15335ac3870ff7f57c64dc77699a98aa7212b09149bb9e052496

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

gem 'rspec', '~> 2.4'
require 'rspec'
require 'arison/version'

include Arison

def capture_stdout
  out = StringIO.new
  $stdout = out
  yield
  return out.string
ensure
  $stdout = STDOUT
end

def capture_stderr
  out = StringIO.new
  $stderr = out
  yield
  return out.string
ensure
  $stderr = STDERR
end

def get_core
  profile = {
    adapter: "sqlite3",
    database: 'tmp/core.db',
    timeout: 500
  }
  Core.new(profile)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
arison-0.2.0 spec/spec_helper.rb