@@ -76,20 +76,17 @@ def test_to_json
7676 resource . to_json ( nil )
7777 end
7878
79- # Passes if the object responds to <tt>cache_key</tt> and if it takes no
80- # arguments (Rails 4.0) or a splat (Rails 4.1+).
79+ # Passes if the object responds to <tt>cache_key</tt>
8180 # Fails otherwise.
8281 #
83- # <tt>cache_key</tt> returns a (self-expiring) unique key for the object, and
84- # is part of the (self-expiring) cache_key, which is used by the adapter.
85- # It is not required unless caching is enabled.
82+ # <tt>cache_key</tt> returns a (self-expiring) unique key for the object,
83+ # and is part of the (self-expiring) cache_key, which is used by the
84+ # adapter. It is not required unless caching is enabled.
8685 def test_cache_key
8786 assert_respond_to resource , :cache_key
8887 actual_arity = resource . method ( :cache_key ) . arity
89- # using absolute value since arity is:
90- # 0 for Rails 4.1+, *timestamp_names
91- # -1 for Rails 4.0, no arguments
92- assert_includes [ -1 , 0 ] , actual_arity , "expected #{ actual_arity . inspect } to be 0 or -1"
88+ assert_includes [ -1 , 0 ] , actual_arity ,
89+ "expected #{ actual_arity . inspect } to be 0 or -1"
9390 end
9491
9592 # Passes if the object responds to <tt>updated_at</tt> and if it takes no
0 commit comments