Skip to content

Commit ba4e729

Browse files
committed
initialize logger and update activesupport version
1 parent 2d5bb1d commit ba4e729

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ gem 'rake'
66
gem 'pry'
77
gem 'test-unit'
88
gem 'webmock', require: false
9-
gem 'activesupport'
9+
gem 'activesupport', '~> 7.0.8'

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ PLATFORMS
8181
x86_64-linux
8282

8383
DEPENDENCIES
84-
activesupport
84+
activesupport (~> 7.0.8)
8585
ontologies_api_client!
8686
pry
8787
rake

test/test_case.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
require 'test-unit'
2+
require 'logger'
23
require 'active_support'
4+
require 'active_support/logger'
35
require 'active_support/cache'
46
require_relative '../lib/ontologies_api_client'
57
require_relative '../config/config'
68
require 'webmock'
79

810
WebMock.allow_net_connect!
911

10-
# Set up a cache for testing
12+
Logger = ::Logger unless defined?(Logger)
1113
CACHE = ActiveSupport::Cache::MemoryStore.new
1214

1315
module LinkedData
1416
module Client
1517
class TestCase < Test::Unit::TestCase
16-
# You can use CACHE in your tests if needed
1718
end
1819
end
1920
end

0 commit comments

Comments
 (0)