Sha256: be35f333879ce2b200c665e880973d7dee29d50b6cad5a32846bad86623100d3
Contents?: true
Size: 563 Bytes
Versions: 10
Compression:
Stored size: 563 Bytes
Contents
require 'test_helper' class InstitutionTest < ActiveSupport::TestCase def setup end test "default" do default_name_institution = Institution.new({"name" => "default"}) assert(default_name_institution.default, "Default name didn't work.") regular_institution = Institution.new({"name" => "not_default"}) assert(!regular_institution.default, "Default attribute didn't work.") default_attribute_institution = Institution.new({"name" => "not_default", "default" => "true"}) assert(default_attribute_institution.default) end end
Version data entries
10 entries across 10 versions & 1 rubygems