summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server-rack.rb2
-rw-r--r--test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/server-rack.rb b/server-rack.rb
index e16d383..fbfd62a 100644
--- a/server-rack.rb
+++ b/server-rack.rb
@@ -26,7 +26,7 @@ class DataStorageServer
if @storage.key?(oid)
['200', {}, [@storage[oid]]]
else
- ['200', {}, ["hello from get #{path}"]]
+ ['404', {}, []]
end
end
diff --git a/test.rb b/test.rb
index 73d30c2..7c0d2ab 100644
--- a/test.rb
+++ b/test.rb
@@ -35,7 +35,7 @@ class DataStorageServerTest < Minitest::Test
assert_equal 'other object', last_response.body
end
- def xtest_get_not_found
+ def test_get_not_found
get '/data/foo/noooope'
assert_equal 404, last_response.status
end