Sha256: e46f747b1da717286b2fcde61a3562a9008b20caf0d53e10e210e7a7274a82aa

Contents?: true

Size: 857 Bytes

Versions: 8

Compression:

Stored size: 857 Bytes

Contents

require 'rubygems'
require 'rspec'
require 'amico'
require 'acts_as_amico'
require 'factory_girl'
require 'fakeweb'

ENV["RAILS_ENV"] = "test"
require File.expand_path("../dummy/config/environment.rb",  __FILE__)
require "rails/test_help"
require "rspec/rails"
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
Rails.backtrace_cleaner.remove_silencers!
FactoryGirl.find_definitions

RSpec.configure do |config|
  require 'rspec/expectations'
  config.include RSpec::Matchers
  config.color_enabled = true

  # == Mock Framework
  config.mock_with :rspec

  config.before(:all) do
    Amico.configure do |configuration|
      redis = Redis.new(:db => 15)
      configuration.redis = redis
    end
  end

  config.before(:each) do
    Amico.redis.flushdb
  end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
acts_as_amico-0.2.8 spec/spec_helper.rb
acts_as_amico-0.2.7 spec/spec_helper.rb
acts_as_amico-0.2.6 spec/spec_helper.rb
acts_as_amico-0.2.4 spec/spec_helper.rb
acts_as_amico-0.2.2 spec/spec_helper.rb
acts_as_amico-0.2.0 spec/spec_helper.rb
acts_as_amico-0.1.1 spec/spec_helper.rb
acts_as_amico-0.1.0 spec/spec_helper.rb