Sha256: 22da31951f7f86552fd2a7c398ec40e28be7c2d58f720358ab8e23f12c3f8ad3

Contents?: true

Size: 319 Bytes

Versions: 7

Compression:

Stored size: 319 Bytes

Contents

# frozen_string_literal: true

require 'helper'

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ffaker-2.18.0 test/test_module_utils.rb
ffaker-2.17.0 test/test_module_utils.rb
ffaker-2.16.0 test/test_module_utils.rb
ffaker-2.15.0 test/test_module_utils.rb
ffaker-2.14.0 test/test_module_utils.rb
ffaker-2.13.0 test/test_module_utils.rb
ffaker-2.12.0 test/test_module_utils.rb