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

- old
+ new

@@ -1,9 +1,9 @@ $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib" -require 'rubygems' -require 'protolink' +require "rubygems" +require "protolink" require "test/unit" # require 'ruby-debug' # Debugger.start # change this if you need to connect to another server @@ -68,16 +68,18 @@ assert_equal channel_1.id, channel_2.id channel_3 = protonet.find_or_create_channel_by_name("test_foobar_2") assert channel_3.is_a?(Protolink::Channel), "Couldn't create channel" assert_equal 'test_foobar_2', channel_3.name + assert channel_3.speak("dude!")["meep_id"] > 0 protonet.create_listen(user_1.id, channel_1.id) protonet.create_listen(user_3.id, channel_1.id) assert_equal [user_1.id, user_3.id].sort, channel_1.listener.map {|u| u.id}.sort protonet.destroy_listen(user_1.id, channel_1.id) assert_equal [user_3.id], channel_1.listener.map {|u| u.id}.sort + end end \ No newline at end of file