Sha256: 41ed46e2353550dcec976a51cc2cf3e3c17f0cb48911e7e7f5ac043f1df43cc9

Contents?: true

Size: 352 Bytes

Versions: 10

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true

require File.expand_path('../test_helper', File.dirname(__FILE__))

class AtExitTest < Minitest::Test
  test 'only registers once' do
    Coverband::AtExit.instance_eval { @at_exit_registered = nil }
    Coverband::AtExit.expects(:at_exit).yields.once.returns(true)
    2.times { Coverband::AtExit.register }
  end
end


Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
coverband-4.2.0 test/coverband/at_exit_test.rb
coverband-4.2.0.rc3 test/coverband/at_exit_test.rb
coverband-4.2.0.rc2 test/coverband/at_exit_test.rb
coverband-4.1.1 test/coverband/at_exit_test.rb
coverband-4.2.0.rc1 test/coverband/at_exit_test.rb
coverband-4.1.0 test/unit/at_exit_test.rb
coverband-4.1.0.beta test/unit/at_exit_test.rb
coverband-4.2.0.beta test/unit/at_exit_test.rb
coverband-4.2.0.alpha test/unit/at_exit_test.rb
coverband-4.1.0.alpha test/unit/at_exit_test.rb