test/user_test.rb in authpds-0.2.2 vs test/user_test.rb in authpds-0.2.3

- old
+ new

@@ -1,7 +1,7 @@ require 'test_helper' -class UserSessionTest < ActiveSupport::TestCase +class UserTest < ActiveSupport::TestCase def setup activate_authlogic controller.session[:session_id] = "FakeSessionID" controller.cookies[:PDS_HANDLE] = { :value => VALID_PDS_HANDLE_FOR_NYU } Institutions.send(:instance_variable_set, :@loadpaths, nil) @@ -45,10 +45,10 @@ assert_equal(Institutions.institutions[:NYU], user.primary_institution) end test "primary_institution no institutions" do user = User.new - assert_nothing_raised ArgumentError do + assert_nothing_raised do user.primary_institution= "NYU" end assert_equal(nil, user.primary_institution) end \ No newline at end of file