Sha256: 47439e8d6d6fcd62933552da6de726617b72dea2ce48a89e9e3cb566f832ff33

Contents?: true

Size: 330 Bytes

Versions: 9

Compression:

Stored size: 330 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

class TestModuleUtils < Test::Unit::TestCase
  def test_provides_a_k_method_for_generating_constant_arrays
    obj = Object.new
    obj.extend FFakerTW::ModuleUtils
    result = obj.k %w[1 2 3]

    assert result.frozen?
    result.each { |e| assert e.frozen? }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffakerTW-1.8.0 test/test_module_utils.rb
ffakerTW-1.7.0 test/test_module_utils.rb
ffakerTW-1.6.0 test/test_module_utils.rb
ffakerTW-1.5.0 test/test_module_utils.rb
ffakerTW-1.4.0 test/test_module_utils.rb
ffakerTW-1.3.0 test/test_module_utils.rb
ffakerTW-1.2.0 test/test_module_utils.rb
ffakerTW-1.1.0 test/test_module_utils.rb
ffakerTW-0.1.0 test/test_module_utils.rb