test/unit/user_test.rb in authpds-0.0.16 vs test/unit/user_test.rb in authpds-0.0.17

- old
+ new

@@ -39,16 +39,15 @@ assert_equal("value4.1", user.user_attributes[:test_attribute4]) end test "primary_institution" do user = User.new - assert_raise ArgumentError do - user.primary_institution= "NYU" - end - InstitutionList.yaml_path= "#{File.dirname(__FILE__)}/../support/config/institutions.yml" assert_nothing_raised ArgumentError do user.primary_institution= "NYU" end + assert_equal(nil, user.primary_institution) + InstitutionList.yaml_path= "#{File.dirname(__FILE__)}/../support/config/institutions.yml" + assert_equal(InstitutionList.instance.get("NYU"), user.primary_institution) end test "institutions" do user = User.new assert_raise ArgumentError do \ No newline at end of file