Skip to content

Commit

Permalink
delete needed missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
evan committed Jan 20, 2008
1 parent 1169872 commit b016fc4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

v0.0.1. First version.
v0.5. First release.
6 changes: 4 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ Very new. Risky in production.

== Features

* very clean API
* clean API
* robust access to all memcached features
* multiple hashing modes, including consistent hashing
* ludicrous speed
* ludicrous speed, including optional non-blocking IO

== Requirements

* {libmemcached 0.13}[http://tangent.org/552/libmemcached.html]

Other versions of libmemcached are not supported.

Extract the tarball, then for Linux, run:
./configure
make && sudo make install
Expand Down
8 changes: 7 additions & 1 deletion test/unit/memcached_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,13 @@ def test_delete
end
end

def test_missing_delete
@cache.delete key rescue nil
assert_raise(Memcached::NotFound) do
@cache.delete key
end
end

def test_add
@cache.delete key rescue nil
@cache.add key, @value
Expand Down Expand Up @@ -206,7 +213,6 @@ def test_missing_increment

def test_decrement
@cache.set key, 10, 0, false
assert_equal 5, @cache.decrement(key, 5)
assert_equal 9, @cache.decrement(key)
end

Expand Down

0 comments on commit b016fc4

Please sign in to comment.