Sha256: 2a7c700d0f57979743cb107d4b5227841e93951e90494a597c49ecff1b5d8e65
Contents?: true
Size: 647 Bytes
Versions: 9
Compression:
Stored size: 647 Bytes
Contents
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib') require 'bundler/setup' require 'active_record' require 'cachai' require 'rack/test' ActiveRecord::Base.establish_connection( "adapter" => "sqlite3", "database" => ':memory:' ) ActiveRecord::Base.logger = Logger.new(STDOUT) # this is done automatically by cachai # load File.join(File.dirname(__FILE__), '/../db/schema.rb') class TestApp < Sinatra::Base use Cachai::Middleware, { :domain => 'domain.com', :recipient => 'test@example.com', :sendgrid => { :api_key => 'test', :api_user => 'test' } } get '/' do 'Hello world' end end
Version data entries
9 entries across 9 versions & 1 rubygems