Skip to content

Commit

Permalink
require fakeredis manually
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jun 8, 2016
1 parent b263621 commit 7f59c64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ source "https://rubygems.org"
gemspec

gem "appraisal"
gem "fakeredis", github: 'guilleiguaran/fakeredis', require: "fakeredis/rspec"
gem "fakeredis", github: 'guilleiguaran/fakeredis'
5 changes: 5 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@

Dir['./spec/support/*.rb'].each { |f| require f }

require "fakeredis"

fakeredis = Redis.new

RSpec.configure do |config|
config.order = 'random'
config.before(:each) do
Split.configuration = Split::Configuration.new
Split.redis = fakeredis
Split.redis.flushall
@ab_user = mock_user
params = nil
Expand Down

0 comments on commit 7f59c64

Please sign in to comment.