Skip to content

Commit

Permalink
CI: fix JRuby build
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Sep 13, 2023
1 parent 3af6778 commit 12fc8da
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion marcel.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rack', '~> 2.0'
spec.add_development_dependency 'nokogiri', '>= 1.9.1'
spec.add_development_dependency 'byebug', '~> 10.0.2'
end
1 change: 1 addition & 0 deletions test/mime_type_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def setup
end

test "closes Pathname files after use" do
skip if RUBY_ENGINE == "jruby"
open_files = ObjectSpace.each_object(File).reject(&:closed?)
assert open_files.none? { |f| f.path == @path }
end
Expand Down
4 changes: 1 addition & 3 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
require 'minitest/autorun'
require 'byebug'

require 'marcel'
require 'pathname'

class Marcel::TestCase < MiniTest::Test
class Marcel::TestCase < Minitest::Test
class << self
def setup(&block)
define_method(:setup, &block)
Expand Down

0 comments on commit 12fc8da

Please sign in to comment.