Commit 266e73bdb683eec5231c49b836b5337369921fe8
Exists in
master
and in
1 other branch
Merge pull request #21 from vitorbaptista/mocking_redis
Mock Redis during our tests (fixes #18)
Showing
5 changed files
with
7 additions
and
0 deletions
Show diff stats
Gemfile
Gemfile.lock
... | ... | @@ -45,6 +45,7 @@ GEM |
45 | 45 | json_pure (1.4.6) |
46 | 46 | jtrupiano-timecop (0.2.1) |
47 | 47 | mime-types (1.16) |
48 | + mock_redis (0.4.1) | |
48 | 49 | mysql2 (0.2.18) |
49 | 50 | newrelic_rpm (3.3.0) |
50 | 51 | nokogiri (1.5.5) |
... | ... | @@ -100,6 +101,7 @@ DEPENDENCIES |
100 | 101 | json_pure (= 1.4.6) |
101 | 102 | jtrupiano-timecop (= 0.2.1) |
102 | 103 | mime-types (= 1.16) |
104 | + mock_redis | |
103 | 105 | mysql2 (= 0.2.18) |
104 | 106 | newrelic_rpm (= 3.3.0) |
105 | 107 | paperclip (= 2.3.1) | ... | ... |
config/environments/cucumber.rb
... | ... | @@ -21,6 +21,8 @@ config.action_controller.allow_forgery_protection = false |
21 | 21 | # ActionMailer::Base.deliveries array. |
22 | 22 | config.action_mailer.delivery_method = :test |
23 | 23 | |
24 | +$redis = MockRedis.new | |
25 | + | |
24 | 26 | HOST = "localhost" |
25 | 27 | AUTHORIZE_NET_API_LOGIN_ID = '' |
26 | 28 | AUTHORIZE_NET_TRANSACTION_KEY = '' | ... | ... |
config/environments/test.rb
No preview for this file type