Sha256: f8ff7e61b4ad6d41afad876fdf13a697d8bd4d44de7c002845f497b8f094feeb
Contents?: true
Size: 668 Bytes
Versions: 3
Compression:
Stored size: 668 Bytes
Contents
require "bundler" Bundler.setup(:default, :development) require "active_record" require "redis/settings" require "redis/namespace" Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|file| require file} ActiveRecord::Base.establish_connection :adapter => "sqlite3", :database => ":memory:" $redis = Redis.new(:host => "localhost", :port => 6379) Redis::Settings.connection = Redis::Namespace.new("redis-settings", :redis => $redis) ActiveRecord::Schema.define(:version => 0) do create_table :users do |t| t.string :login end end RSpec.configure do |config| config.before do $redis.keys("redis-settings*").each {|key| $redis.del(key)} end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
redis-settings-0.2.3 | spec/spec_helper.rb |
redis-settings-0.2.2 | spec/spec_helper.rb |
redis-settings-0.2.1 | spec/spec_helper.rb |