Sha256: 7314c4660ccf73f9db9995fbbd7f4880000fc094313b8d5a917f098041c3e213
Contents?: true
Size: 490 Bytes
Versions: 8
Compression:
Stored size: 490 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' 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
8 entries across 8 versions & 2 rubygems