Sha256: b37239726e2ed0fafce855087efa8868a8f163f53f0c1b1081a958f44044beee

Contents?: true

Size: 436 Bytes

Versions: 2

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true

require 'helper'
require 'peddler/errors/class_generator'

class TestPeddlerErrorsClassGenerator < MiniTest::Test
  def test_building_an_error_class
    Peddler::Errors::ClassGenerator.call('Foo')
    assert Peddler::Errors::Foo
  end

  def test_thread_safety
    Peddler::Errors::ClassGenerator.call('Foo')
    assert_output '', '' do
      Peddler::Errors::ClassGenerator.call('Foo')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-2.1.1 test/unit/peddler/errors/test_class_generator.rb
peddler-2.1.0 test/unit/peddler/errors/test_class_generator.rb