cache_back 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -21,7 +21,7 @@ module CacheBack
21
21
  private
22
22
 
23
23
  def cache_safe?(options)
24
- !options.has_key?(:select)
24
+ options[:select].nil?
25
25
  end
26
26
 
27
27
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cache_back
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mick Staugaard