test/all_tests.rb in protolink-0.2.2 vs test/all_tests.rb in protolink-0.2.3

- old
+ new

@@ -33,10 +33,12 @@ protonet = Protolink::Protonet.open(PTN_SERVER, PTN_USER, PTN_PASS) user = protonet.find_user_by_login("test") user.delete! user = protonet.find_user_by_login("test_2") user.delete! + user = protonet.find_user_by_login("test_3") + user.delete! channel = protonet.find_channel_by_name("test_foobar") channel.delete! channel = protonet.find_channel_by_name("test_foobar_2") channel.delete! end @@ -57,9 +59,11 @@ 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" assert_equal 'test_2', user_3.login assert_equal 'test_2@test.com', user_3.email + + user_4 = protonet.find_or_create_user_by_login('test_3', {:name => 'foobar', :email => "email@du-bist-mir-sympathisch.de"), :external_profile_url => "http://du-bist-mir-sympathisch.de/profile_redirect", :avatar_url => "http://www.google.com/intl/en_com/images/srpr/logo2w.png"}) channel_1 = protonet.create_channel(:name => "test_foobar", :skip_autosubscribe => true) assert channel_1.is_a?(Protolink::Channel), "Couldn't create channel" assert_equal 'test_foobar', channel_1.name \ No newline at end of file