Commit d877f9e5 by ivan Lan

Add test for WeatherModel.set_ohm

parent f8df5076
......@@ -6,7 +6,7 @@ RSpec.describe WeatherModel do
include WeatherModel
before do
# start an ohm
Ohm.redis = Redic.new("redis://127.0.0.1:6379/5")
WeatherModel.set_ohm Redic.new("redis://127.0.0.1:6379/5")
# run migration
Dir[File.dirname(__FILE__) + '/../db/migrate/*.rb'].each { |file| require file }
ActiveRecord::Base.establish_connection(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment