Project

General

Profile

« Previous | Next » 

Revision fbffba1c

Added by José Luis Escalante over 14 years ago

  • ID fbffba1c0982449bce29569a073ef307953ef7e6

added some explanations in reports_controller_test, fact_values_test, users_controller_test, fact_value_controller_test, user_test, about why there is some missing tests. Refactored the auth_source_ldap_controller.

View differences:

test/unit/user_test.rb
test "when try to login if password is empty should return nil" do
assert_equal nil, User.try_to_login("anything", "")
end
#the rest of this method can't be tested, cause use auth source authentication which is not implemented yet...
# couldn't continue testing the rest of login method cause use auth_source.authenticate, which is not implemented yet
end

Also available in: Unified diff