Sha256: e998633fe6e2675db30fc6b60b57568d9a2ea7b336602dc181bcf4a26f0539b3

Contents?: true

Size: 426 Bytes

Versions: 11

Compression:

Stored size: 426 Bytes

Contents

require 'test_helper'

class UtilTest < Test::Unit::TestCase
  def test_missing_method
    hash = { "an_attr" => "My first attribute.", :some_numbers => [1, 2] }
    institution = Institutions::Institution.new("my_inst", "My Institution", hash)
    assert_nothing_raised {
      institution.an_attr
    }
    assert_equal("My first attribute.", institution.an_attr)
    assert_equal([1, 2], institution.some_numbers)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
institutions-0.1.3 test/institution/util_test.rb
institutions-0.1.2 test/institution/util_test.rb
institutions-0.1.1 test/institution/util_test.rb
institutions-0.1.0 test/institution/util_test.rb
institutions-0.0.7 test/institution/util_test.rb
institutions-0.0.6 test/institution/util_test.rb
institutions-0.0.5 test/institution/util_test.rb
institutions-0.0.4 test/institution/util_test.rb
institutions-0.0.3 test/institution/util_test.rb
institutions-0.0.2 test/institution/util_test.rb
institutions-0.0.1 test/institution/util_test.rb