Sha256: aa95265399156839076c2dc0db52a148e02d2d9fb3a8b1a61210fc003789bd3a
Contents?: true
Size: 505 Bytes
Versions: 7
Compression:
Stored size: 505 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rubygems' require 'tweetstream' require 'spec' require 'spec/autorun' require 'yajl' require 'json' def sample_tweets if @tweets @tweets else @tweets = [] Yajl::Parser.parse(File.open(File.dirname(__FILE__) + '/data/statuses.json', 'r'), :symbolize_keys => true) do |hash| @tweets << hash end @tweets end end Spec::Runner.configure do |config| end
Version data entries
7 entries across 7 versions & 2 rubygems