Sha256: e0abee57c370239cefb0687d470444f73a9d8b51ec06feba764b74620b6495a2
Contents?: true
Size: 918 Bytes
Versions: 2
Compression:
Stored size: 918 Bytes
Contents
require 'simplecov' require File.expand_path('../../lib/instapaper', __FILE__) require 'rspec' require 'webmock/rspec' def a_delete(path) a_request(:delete, Instapaper.endpoint_with_prefix + path) end def a_get(path) a_request(:get, Instapaper.endpoint_with_prefix + path) end def a_post(path) a_request(:post, Instapaper.endpoint_with_prefix + path) end def a_put(path) a_request(:put, Instapaper.endpoint_with_prefix + path) end def stub_delete(path) stub_request(:delete, Instapaper.endpoint_with_prefix + path) end def stub_get(path) stub_request(:get, Instapaper.endpoint_with_prefix + path) end def stub_post(path) stub_request(:post, Instapaper.endpoint_with_prefix + path) end def stub_put(path) stub_request(:put, Instapaper.endpoint_with_prefix + path) end def fixture_path File.expand_path("../fixtures", __FILE__) end def fixture(file) File.new(fixture_path + '/' + file) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
instapaper-0.2.1 | spec/spec_helper.rb |
instapaper-0.2.0 | spec/spec_helper.rb |