Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Mock Redis during our tests (fixes #18)

  • Loading branch information...
commit 7067e231ff40cd4ba2973ff5168d27b0e38cfe7c 1 parent 07e3a0e
@vitorbaptista vitorbaptista authored
View
1  Gemfile
@@ -51,4 +51,5 @@ end
group :test, :cucumber do
gem 'factory_girl', '1.2.3'
+ gem 'mock_redis', '0.4.1'
end
View
2  Gemfile.lock
@@ -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)
@@ -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)
View
2  config/environments/cucumber.rb
@@ -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 = ''
View
2  config/environments/test.rb
@@ -21,6 +21,8 @@
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
+$redis = MockRedis.new
+
HOST = 'localhost'
AUTHORIZE_NET_API_LOGIN_ID = ''
View
BIN  vendor/cache/mock_redis-0.4.1.gem
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.