Sha256: 84a4cc534ed824f17b0ee086579f1ae433fbdb5e878fbf23dbd558c573db69c5
Contents?: true
Size: 758 Bytes
Versions: 1
Compression:
Stored size: 758 Bytes
Contents
require 'simplecov' SimpleCov.start do add_filter 'spec' end require 'rspec' require 'webmock/rspec' require 'multi_json' require 'buffer' # Taken from https://github.com/sferik/twitter/blob/master/spec/helper.rb # for stubbing & mocking HTTP requests def endpoint 'https://api.bufferapp.com/1/' end def a_get(path) a_request(:get, endpoint + path) end def a_post(path) a_request(:post, endpoint + path) end def stub_get(path) stub_request(:get, endpoint + path) end def stub_post(path) stub_request(:post, endpoint + path) end def fixture_path File.expand_path("../fixtures", __FILE__) end def fixture(file) File.new(fixture_path + '/' + file) end def fixture_contents(file) File.open(fixture_path + '/' + file) { |f| f.read } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
buffer-0.0.1 | spec/helper.rb |