spec/spec_helper.rb in blendris-0.5 vs spec/spec_helper.rb in blendris-0.6
- old
+ new
@@ -73,20 +73,27 @@
refs :refs
on_change { raise TestEx.new }
end
+ class WeirdKeyModel < Blendris::Model
+ key "setkey", :myset, "listkey", :mylist
+
+ set :myset
+ list :mylist
+ end
+
class TestEx < Exception; end
end
Spec::Runner.configure do |config|
include TestFixtures
config.before(:each) do
- RedisAccessor.database = 11
- RedisAccessor.flushdb
+ Blendris.database = 11
+ Blendris.flushdb
@vegetable = Category.create("vegetable")
@onion = Food.create("onion")
@beans = Food.create("beans")
@@ -97,9 +104,10 @@
@meat = Category.create("meat")
@steak = Food.create("steak")
end
config.after(:each) do
- RedisAccessor.flushdb
+ Blendris.database = 11
+ Blendris.flushdb
end
end