Permalink
Browse files

Fix tests for ruby 1.8.7

  • Loading branch information...
1 parent 5e0bb60 commit 51b4b4b48c64787cc4bda97b8b204dcd24423740 @dfens dfens committed Apr 29, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 test/test_active_support.rb
  2. +1 −1 test/test_session_store.rb
View
2 test/test_active_support.rb
@@ -174,7 +174,7 @@
@dalli = ActiveSupport::Cache.lookup_store(:dalli_store, 'localhost:29125', :raise_errors => true)
- exception = [Dalli::RingError, :message => "No server available"]
+ exception = [Dalli::RingError, { :message => "No server available" }]
assert_raises(*exception) { @dalli.read 'foo' }
assert_raises(*exception) { @dalli.read 'foo', :raw => true }
View
2 test/test_session_store.rb
@@ -231,7 +231,7 @@ def test_with_raise_errors_option
memcached_kill(29125)
- exception = [Dalli::RingError, :message => "No server available"]
+ exception = [Dalli::RingError, { :message => "No server available" }]
assert_raises(*exception) { get '/get_session_value' }
assert_raises(*exception) { get '/set_session_value' }

0 comments on commit 51b4b4b

Please sign in to comment.