Sha256: 8e7abf51d57fa61c2c59ab825b382629e9f65e61acdb52175eea6bf22a1397ba
Contents?: true
Size: 562 Bytes
Versions: 1
Compression:
Stored size: 562 Bytes
Contents
require 'simplecov' SimpleCov.start do add_group 'Tweetstream', 'lib/tweetstream' add_group 'Specs', 'spec' end $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'tweetstream' require 'rspec' require 'rspec/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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tweetstream-1.1.0.rc1 | spec/spec_helper.rb |