Sha256: c3dd3a16a79e81784d959e8c47ded6bd36c0d3e915a7e3255ec54e41fa0c1e23

Contents?: true

Size: 751 Bytes

Versions: 1

Compression:

Stored size: 751 Bytes

Contents

require 'simplecov'
require 'minitest/autorun'
require 'minitest/pride'
require 'fabrication'

SimpleCov.start do
  command_name 'MiniTest::Spec'
  add_filter   '/test/'
end

module MiniTest
  class Spec
    class << self
      alias_method :context, :describe
    end
  end
end

require_relative './support/vcr_setup.rb'
require_relative '../lib/troo.rb'
require_relative './support/fabrication.rb'

Troo::Database
  .connect(Troo::Configuration
    .load('config/trooconf.yml', :test))

require 'mocha/setup'

def database_cleanup(delay = 0)
  Ohm.redis.flushdb
  sleep delay if delay > 0
end

def mock_trello_response(filename, klass)
  json = File.read('./test/support/remotes/' + filename)
  hash = Yajl::Parser.parse(json)
  klass.new(hash)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
troo-0.0.10 test/test_helper.rb