Sha256: 1db6ed8797572c2984cf9e8dca4329d7031fd135d9c6d9a9091777172b42e7b0
Contents?: true
Size: 853 Bytes
Versions: 11
Compression:
Stored size: 853 Bytes
Contents
require 'test_helper' class CoreTest < Test::Unit::TestCase def test_new hash = { "first" => "My first attribute.", :array_attribute => [1, 2] } assert_nothing_raised { institution = Institutions::Institution.new("my_inst", "My Institution", hash) } end def test_new_no_hash assert_nothing_raised { institution = Institutions::Institution.new("my_inst", "My Institution") } end def test_new_nil_hash assert_nothing_raised { institution = Institutions::Institution.new("my_inst", "My Institution", nil) } end def test_new_nil_code assert_raise(ArgumentError) { institution = Institutions::Institution.new(nil, "My Institution") } end def test_new_nil_name assert_raise(ArgumentError) { institution = Institutions::Institution.new("my_inst", nil) } end end
Version data entries
11 entries across 11 versions & 1 rubygems