Sha256: fa05ecf28786126988dfcbd72fdbd4dbcc0a6291b01ae0afbb80a60ccdb090bf
Contents?: true
Size: 906 Bytes
Versions: 1
Compression:
Stored size: 906 Bytes
Contents
unless ENV['CI'] require 'simplecov' SimpleCov.start do add_group 'Tweetstream', 'lib/tweetstream' add_group 'Specs', 'spec' end end require 'tweetstream' require 'tweetstream/site_stream_client' require 'rspec' require 'webmock/rspec' require 'yajl' require 'json' def sample_tweets return @tweets if @tweets @tweets = [] Yajl::Parser.parse(fixture('statuses.json'), :symbolize_keys => true) do |hash| @tweets << hash end @tweets end def sample_direct_messages return @direct_messages if @direct_messages @direct_messages = [] Yajl::Parser.parse(fixture('direct_messages.json'), :symbolize_keys => true) do |hash| @direct_messages << hash end @direct_messages end def fixture_path File.expand_path("../fixtures", __FILE__) end def fixture(file) File.new(fixture_path + '/' + file) end FakeHttp = Class.new do def callback; end def errback; end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tweetstream-2.1.0 | spec/spec_helper.rb |