Commit 7067e231ff40cd4ba2973ff5168d27b0e38cfe7c

Authored by Vitor Baptista
1 parent 07e3a0eb

Mock Redis during our tests (fixes #18)

@@ -51,4 +51,5 @@ end @@ -51,4 +51,5 @@ end
51 51
52 group :test, :cucumber do 52 group :test, :cucumber do
53 gem 'factory_girl', '1.2.3' 53 gem 'factory_girl', '1.2.3'
  54 + gem 'mock_redis', '0.4.1'
54 end 55 end
@@ -45,6 +45,7 @@ GEM @@ -45,6 +45,7 @@ GEM
45 json_pure (1.4.6) 45 json_pure (1.4.6)
46 jtrupiano-timecop (0.2.1) 46 jtrupiano-timecop (0.2.1)
47 mime-types (1.16) 47 mime-types (1.16)
  48 + mock_redis (0.4.1)
48 mysql2 (0.2.18) 49 mysql2 (0.2.18)
49 newrelic_rpm (3.3.0) 50 newrelic_rpm (3.3.0)
50 nokogiri (1.5.5) 51 nokogiri (1.5.5)
@@ -100,6 +101,7 @@ DEPENDENCIES @@ -100,6 +101,7 @@ DEPENDENCIES
100 json_pure (= 1.4.6) 101 json_pure (= 1.4.6)
101 jtrupiano-timecop (= 0.2.1) 102 jtrupiano-timecop (= 0.2.1)
102 mime-types (= 1.16) 103 mime-types (= 1.16)
  104 + mock_redis
103 mysql2 (= 0.2.18) 105 mysql2 (= 0.2.18)
104 newrelic_rpm (= 3.3.0) 106 newrelic_rpm (= 3.3.0)
105 paperclip (= 2.3.1) 107 paperclip (= 2.3.1)
config/environments/cucumber.rb
@@ -21,6 +21,8 @@ config.action_controller.allow_forgery_protection = false @@ -21,6 +21,8 @@ config.action_controller.allow_forgery_protection = false
21 # ActionMailer::Base.deliveries array. 21 # ActionMailer::Base.deliveries array.
22 config.action_mailer.delivery_method = :test 22 config.action_mailer.delivery_method = :test
23 23
  24 +$redis = MockRedis.new
  25 +
24 HOST = "localhost" 26 HOST = "localhost"
25 AUTHORIZE_NET_API_LOGIN_ID = '' 27 AUTHORIZE_NET_API_LOGIN_ID = ''
26 AUTHORIZE_NET_TRANSACTION_KEY = '' 28 AUTHORIZE_NET_TRANSACTION_KEY = ''
config/environments/test.rb
@@ -21,6 +21,8 @@ config.action_controller.allow_forgery_protection = false @@ -21,6 +21,8 @@ config.action_controller.allow_forgery_protection = false
21 # ActionMailer::Base.deliveries array. 21 # ActionMailer::Base.deliveries array.
22 config.action_mailer.delivery_method = :test 22 config.action_mailer.delivery_method = :test
23 23
  24 +$redis = MockRedis.new
  25 +
24 HOST = 'localhost' 26 HOST = 'localhost'
25 27
26 AUTHORIZE_NET_API_LOGIN_ID = '' 28 AUTHORIZE_NET_API_LOGIN_ID = ''
vendor/cache/mock_redis-0.4.1.gem 0 → 100644
No preview for this file type