From 082638e0abbb48316553e02957a24823b18289c9 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Mon, 26 Sep 2016 15:31:01 +0200 Subject: resource_not_found_error changed to not_found_error to match new RestClient errors --- test/error.rb | 4 ++-- test/setup.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test') 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 -- cgit v1.2.3