Sha256: 2407035ab3c4c686f9970ffcccf4952554a8c24f8e0f9653c7a8eb2efc18b85f

Contents?: true

Size: 307 Bytes

Versions: 6

Compression:

Stored size: 307 Bytes

Contents

# encoding: utf-8

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

6 entries across 6 versions & 1 rubygems

Version Path
ffaker-2.11.0 test/test_module_utils.rb
ffaker-2.10.0 test/test_module_utils.rb
ffaker-2.9.0 test/test_module_utils.rb
ffaker-2.8.1 test/test_module_utils.rb
ffaker-2.8.0 test/test_module_utils.rb
ffaker-2.7.0 test/test_module_utils.rb