Sha256: f7310ccef34a8bbf2d3e2ce0aa37297597cfa446d2740bd8d473582f96ab0a46

Contents?: true

Size: 504 Bytes

Versions: 3

Compression:

Stored size: 504 Bytes

Contents

require File.expand_path(__FILE__).sub(%r(/test/.*), '/test/test_helper.rb')
require File.expand_path(__FILE__).sub(%r(.*/test/), '').sub(/test_(.*)\.rb/,'\1')

class TestNamedArrayEntity < Test::Unit::TestCase
  def setup
    m = Module.new do
      extend Entity
      self.format = "SomeEntity"

      property :prop do
        "PROP: #{self}"
      end
    end
  end

  def test_true
    a = NamedArray.setup(["a", "b"], %w(SomeEntity Other))
    assert a["SomeEntity"].respond_to?(:prop)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scout-gear-10.7.4 test/scout/entity/test_named_array.rb
scout-gear-10.7.3 test/scout/entity/test_named_array.rb
scout-gear-10.7.2 test/scout/entity/test_named_array.rb