Sha256: 20f5feb74d13ad85603956ccbab427a5dd50e17049ba5e8e9a16593e183342ab

Contents?: true

Size: 482 Bytes

Versions: 3

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

module MiniTest
  class Unit
    class TestCase
      def teardown
        Object.send(:remove_const, 'Canard') if Object.const_defined?('Canard')
        GC.start
      end

      def setup
        ['canard/abilities.rb',
         'canard/user_model.rb',
         'canard/find_abilities.rb'].each do |file|
          file_path = File.join(File.expand_path('../../lib', __dir__), file)
          load file_path
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
canard-0.6.2.pre test/support/reloadable.rb
canard-0.6.1.pre test/support/reloadable.rb
canard-0.6.0.pre test/support/reloadable.rb