Commit 266e73bdb683eec5231c49b836b5337369921fe8

Authored by Luke Baker
2 parents 07e3a0eb 7067e231

Merge pull request #21 from vitorbaptista/mocking_redis

Mock Redis during our tests (fixes #18)
Gemfile
... ... @@ -51,4 +51,5 @@ end
51 51  
52 52 group :test, :cucumber do
53 53 gem 'factory_girl', '1.2.3'
  54 + gem 'mock_redis', '0.4.1'
54 55 end
... ...
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
... ... @@ -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  
26 28 AUTHORIZE_NET_API_LOGIN_ID = ''
... ...
vendor/cache/mock_redis-0.4.1.gem 0 → 100644
No preview for this file type