diff options
author | Richard Schneeman <richard.schneeman@gmail.com> | 2016-09-22 09:29:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-22 09:29:25 -0500 |
commit | bf19c2230d20f7679b1fb52505c49c183627b235 (patch) | |
tree | 1c84d1353d124ad7c99c16efc768e048e4ccb9d3 /activesupport/test | |
parent | 19966242163611e61d45ee4033f28aa6f967906a (diff) | |
parent | 97544ed1770bf3c169f3b8f3711917bbf37045bc (diff) | |
download | rails-bf19c2230d20f7679b1fb52505c49c183627b235.tar.gz rails-bf19c2230d20f7679b1fb52505c49c183627b235.tar.bz2 rails-bf19c2230d20f7679b1fb52505c49c183627b235.zip |
Merge pull request #26524 from y-yagi/add_check_of_argument
add check of argument
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/caching_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb index a669d666be..0df4173a1a 100644 --- a/activesupport/test/caching_test.rb +++ b/activesupport/test/caching_test.rb @@ -363,6 +363,12 @@ module CacheStoreBehavior assert_equal({ foo => "FOO!", bar => "BAM!" }, values) end + def test_fetch_multi_without_block + assert_raises(ArgumentError) do + @cache.fetch_multi("foo") + end + end + def test_read_and_write_compressed_small_data @cache.write("foo", "bar", compress: true) assert_equal "bar", @cache.read("foo") |