Sha256: a4956841ac1289ec5f6d1047dbaabc1a245cc711606f57e6b954b9d2fbe15445

Contents?: true

Size: 542 Bytes

Versions: 5

Compression:

Stored size: 542 Bytes

Contents

require 'rubygems'
require 'bacon'
require 'mocha'
require 'mocha/api'
require 'rack/test'
require 'tempfile'

$:.unshift File.dirname(__FILE__) + "/../lib"

class Bacon::Context
  include Mocha::API
  include Rack::Test::Methods

  alias_method :old_it, :it
  def it(description)
    old_it(description) do
      mocha_setup
      yield
      mocha_verify
      mocha_teardown
    end
  end
end

require 'taps/config'
Taps::Config.taps_database_url = "sqlite://#{Tempfile.new('test.db').path}"
Sequel.connect(Taps::Config.taps_database_url)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
taps2-0.5.5 spec/base.rb
taps2-0.5.4 spec/base.rb
taps2-0.5.3 spec/base.rb
taps2-0.5.2 spec/base.rb
taps2-0.5.1 spec/base.rb