Skip to content

Commit

Permalink
Mock Redis during our tests (fixes #18)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorbaptista committed Aug 16, 2012
1 parent 07e3a0e commit 7067e23
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -51,4 +51,5 @@ end

group :test, :cucumber do
gem 'factory_girl', '1.2.3'
gem 'mock_redis', '0.4.1'
end
2 changes: 2 additions & 0 deletions Gemfile.lock
Expand Up @@ -45,6 +45,7 @@ GEM
json_pure (1.4.6)
jtrupiano-timecop (0.2.1)
mime-types (1.16)
mock_redis (0.4.1)
mysql2 (0.2.18)
newrelic_rpm (3.3.0)
nokogiri (1.5.5)
Expand Down Expand Up @@ -100,6 +101,7 @@ DEPENDENCIES
json_pure (= 1.4.6)
jtrupiano-timecop (= 0.2.1)
mime-types (= 1.16)
mock_redis
mysql2 (= 0.2.18)
newrelic_rpm (= 3.3.0)
paperclip (= 2.3.1)
Expand Down
2 changes: 2 additions & 0 deletions config/environments/cucumber.rb
Expand Up @@ -21,6 +21,8 @@
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test

$redis = MockRedis.new

HOST = "localhost"
AUTHORIZE_NET_API_LOGIN_ID = ''
AUTHORIZE_NET_TRANSACTION_KEY = ''
Expand Down
2 changes: 2 additions & 0 deletions config/environments/test.rb
Expand Up @@ -21,6 +21,8 @@
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test

$redis = MockRedis.new

HOST = 'localhost'

AUTHORIZE_NET_API_LOGIN_ID = ''
Expand Down
Binary file added vendor/cache/mock_redis-0.4.1.gem
Binary file not shown.

0 comments on commit 7067e23

Please sign in to comment.