spec/unit/cached_spec.rb in ultracache-0.1.0 vs spec/unit/cached_spec.rb in ultracache-0.1.1

- old
+ new

@@ -1,9 +1,15 @@ require "spec_helper" describe Ultracache::Cached do before do - Ultracache::Configurations.storage = Ultracache::Storage::Redis.new(:urls => ['localhost:6379']) + Ultracache::Configurations.storage = Ultracache::Storage::Redis.new(:urls => ['redis://localhost:6379/1']) + Ultracache::Configurations.serializer = Ultracache::Serializer::JsonSerializer.new + end + + after do + Ultracache::Configurations.storage = nil + Ultracache::Configurations.serializer = nil end context "without model hierarchy" do let(:post) { Post.new }