test/test_tw.rb in tw-1.2.0 vs test/test_tw.rb in tw-1.2.1
- old
+ new
@@ -13,10 +13,10 @@
end
def response?(arr)
return false unless arr.kind_of? Array
arr.each do |i|
- return false if !(i.id.class == Fixnum and
+ return false if !(i.id.class == Integer and
(user? i.user or (user? i.user[:to] and user? i.user[:from])) and
i.text.kind_of? String and
i.time.kind_of? Time)
end
return true