Sha256: 6cf3fd8add9f2c5900469c2056dbee21079baa5a7edea94ccc27570295403cc9

Contents?: true

Size: 522 Bytes

Versions: 6

Compression:

Stored size: 522 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'rspec'
require 'monocle'
require 'rails'
require 'redis'

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

REDIS = Redis.new

RSpec.configure do |config|
  config.after(:each) do
    REDIS.keys('monocle*').each do |key|
      REDIS.del(key)
    end
    sleep(0.5)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
monocle-0.2.6 spec/spec_helper.rb
monocle-0.2.5 spec/spec_helper.rb
monocle-0.2.4 spec/spec_helper.rb
monocle-0.2.3 spec/spec_helper.rb
monocle-0.2.2 spec/spec_helper.rb
monocle-0.2.1 spec/spec_helper.rb