summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2016-09-26 15:31:01 +0200
committerChristoph Helma <helma@in-silico.ch>2016-09-26 15:32:07 +0200
commit082638e0abbb48316553e02957a24823b18289c9 (patch)
tree5c310b8093ffdf348d7e277b13021e93b5a42c73 /test
parent96ca0eec8bfce8f95ea1d36de7ede61f7c12e517 (diff)
resource_not_found_error changed to not_found_error to match new RestClient errors
Diffstat (limited to 'test')
-rw-r--r--test/error.rb4
-rw-r--r--test/setup.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/error.rb b/test/error.rb
index 16a7077..eeac735 100644
--- a/test/error.rb
+++ b/test/error.rb
@@ -8,8 +8,8 @@ class ErrorTest < MiniTest::Test
end
def test_error_methods
- assert_raises OpenTox::ResourceNotFoundError do
- resource_not_found_error "This is a test"
+ assert_raises OpenTox::NotFoundError do
+ not_found_error "This is a test"
end
end
diff --git a/test/setup.rb b/test/setup.rb
index 6c97282..e7c32b4 100644
--- a/test/setup.rb
+++ b/test/setup.rb
@@ -5,5 +5,5 @@ require_relative '../lib/lazar.rb'
include OpenTox
TEST_DIR ||= File.expand_path(File.dirname(__FILE__))
DATA_DIR ||= File.join(TEST_DIR,"data")
-#$mongo.database.drop
-#$gridfs = $mongo.database.fs
+$mongo.database.drop
+$gridfs = $mongo.database.fs