spec/spec_helper.rb in tweetstream-1.1.0.rc1 vs spec/spec_helper.rb in tweetstream-1.1.0.rc2
- old
+ new
@@ -22,5 +22,15 @@
@tweets << hash
end
@tweets
end
end
+
+def sample_direct_messages
+ return @direct_messages if @direct_messages
+
+ @direct_messages = []
+ Yajl::Parser.parse(File.open(File.dirname(__FILE__) + '/data/direct_messages.json', 'r')) do |hash|
+ @direct_messages << hash
+ end
+ @direct_messages
+end