Sha256: 79afc2f9c1b7832c1e64894b330f839ba3dc270dd55ff655333387e2e1b7ea59
Contents?: true
Size: 429 Bytes
Versions: 3
Compression:
Stored size: 429 Bytes
Contents
require 'uri' require 'pry' require 'rspec' require 'transifex' require 'webmock/rspec' BASE_HEADERS = { :content_type => 'application/json; charset=utf-8' } def make_endpoint(path) URI.join(Transifex::Config::BASE_URL, "/api/2/#{path}").to_s end def stub_get(path) stub_request(:get, make_endpoint(path)) end def fixture(file) prefix = File.expand_path('../fixtures', __FILE__) File.new(File.join(prefix, file)) end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
transifex-ruby-0.0.5 | spec/spec_helper.rb |
transifex-ruby-0.0.4 | spec/spec_helper.rb |
transifex-ruby-fork-jg-0.1.0 | spec/spec_helper.rb |