Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (22 sloc) 0.529 kB
require 'rubygems'
require 'bacon'
require 'mocha'
require 'rack/test'
require 'tempfile'
$:.unshift File.dirname(__FILE__) + "/../lib"
class Bacon::Context
include Mocha::Standalone
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)
Jump to Line
Something went wrong with that request. Please try again.