Skip to content

Commit

Permalink
Bring options used in tests in line with memcached 0.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
betamatt committed Aug 23, 2010
1 parent 3464706 commit 9f4f538
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/libmemcached_store_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,23 @@ def test_should_enable_non_blocking_io_by_default
end

def test_should_enable_server_failover_by_default
assert_equal true, @store.options[:failover]
assert_equal true, @store.options[:auto_eject_hosts]
end

def test_should_allow_configuration_of_custom_options
options = {
:prefix_key => 'test',
:distribution => :modula,
:no_block => false,
:failover => false
:auto_eject_hosts => false
}

store = ActiveSupport::Cache.lookup_store :libmemcached_store, 'localhost', options
assert_equal 'test', store.options[:prefix_key]

assert_equal 'test', store.instance_variable_get(:@cache).prefix_key
assert_equal :modula, store.options[:distribution]
assert_equal false, store.options[:no_block]
assert_equal false, store.options[:failover]
assert_equal false, store.options[:auto_eject_hosts]
end

def test_should_use_local_cache
Expand Down

0 comments on commit 9f4f538

Please sign in to comment.