Sha256: 920255e9a2f8898698573986c15b0acf099ade918967ad322152702c4abd81df
Contents?: true
Size: 799 Bytes
Versions: 1
Compression:
Stored size: 799 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', :duration => 30, :mailgun => { domain: 'foobartest1234.mailgun.org', api_key: 'key-aoidjoaijdoaijdoaijsd' }, :blocked_ips => [ "12.12.12.12" ] } get '/' do 'Hello world' end end RSpec.configure do |config| config.color = true end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cachai-0.2.8 | spec/spec_helper.rb |