Sha256: 97238cf951e65b3fd5d18a290b7f03a75ca27b849ba9b23a812aeb66d35ba3fb

Contents?: true

Size: 821 Bytes

Versions: 1

Compression:

Stored size: 821 Bytes

Contents

require 'rspec'
require 'amico'

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

RSpec.configure do |config|
  config.before(:all) do
  end

  config.before(:each) do
    Amico.configure do |configuration|
      redis = Redis.new(:db => 15)
      configuration.redis = redis
      configuration.namespace = 'amico'
      configuration.following_key = 'following'
      configuration.followers_key = 'followers'
      configuration.blocked_key = 'blocked'
      configuration.reciprocated_key = 'reciprocated'
      configuration.pending_key = 'pending'
      configuration.default_scope_key = 'default'
      configuration.pending_follow = false
      configuration.page_size = 25
    end

    Amico.redis.flushdb
  end

  config.after(:all) do
  	Amico.redis.flushdb
    Amico.redis.quit
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amico-2.1.0 spec/spec_helper.rb