Please sign in to comment.
Fixes Redis' mocking.
We need to require mock_redis before calling MockRedis.new inside config/environments/*.rb. This because, inside that, Bundler haven't required our environments' gems yet. This patch moves that to spec/spec_helper.rb and features/support/env.rb. This fixes this problem, and also mocks Redis even if we don't run the tests through Rake. I also forgot to commit the Gemfile.lock. Adding this here.
- Loading branch information...
Showing with 4 additions and 5 deletions.