cache_back 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/cache_back/read_mixin.rb +1 -1
- data/test/find_one_test.rb +3 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/test/find_one_test.rb
CHANGED
@@ -24,6 +24,9 @@ class FindOneTest < ActiveSupport::TestCase
|
|
24
24
|
Post.find(post.id)
|
25
25
|
assert(Rails.cache.read(post.cache_back_key))
|
26
26
|
|
27
|
+
CacheBack.cache.expects(:read)
|
28
|
+
Post.find(post.id, :select => nil)
|
29
|
+
|
27
30
|
CacheBack.cache.expects(:read).never
|
28
31
|
Post.find(post.id, :select => 'title')
|
29
32
|
end
|