test/all_tests.rb in protolink-0.2.4 vs test/all_tests.rb in protolink-0.2.5

- old
+ new

@@ -39,10 +39,14 @@ assert user_1.is_a?(Protolink::User), "Couldn't create user" assert_equal 'test', user_1.login assert_equal 'test@test.com', user_1.email assert_equal 'http://www.google.de', user_1.external_profile_url assert user_1.auth_token.match(/\w+/) - + + assert_raise(Protolink::Protonet::ApiException) { + protonet.create_user(:login => 'test', :email => 'test@test.com', :external_profile_url => 'http://www.google.de') + } + user_2 = protonet.find_or_create_user_by_login('test', :email => 'test@test.com') assert_equal user_1.id, user_2.id user_3 = protonet.find_or_create_user_by_login('test_2', :email => 'test_2@test.com') assert user_3.is_a?(Protolink::User), "Couldn't create user" \ No newline at end of file