Sha256: da6c509d7544afde956a7daef42fa2bbe19628563da25820f82846f0acf52f3e
Contents?: true
Size: 876 Bytes
Versions: 4
Compression:
Stored size: 876 Bytes
Contents
require 'minitest/spec' require 'minitest/mock' require 'minitest/autorun' require 'webmock/minitest' require 'crp' FIXTURES_PATH = File.expand_path("#{File.dirname(__FILE__)}/fixtures") def valid_review_body @valid_review_body ||= File.read(File.join(FIXTURES_PATH, 'valid_review.json')) end def valid_review_body_with_integer_internal_id @valid_review_body_with_integer_internal_id ||= File.read(File.join(FIXTURES_PATH, 'valid_review_with_integer_internal_id.json')) end def valid_callback_review_body @valid_callback_review_body ||= File.read(File.join(FIXTURES_PATH, 'valid_callback_review.txt')).chomp end def stub_new_review_request(new_review_url) request = { :headers => {'Accept' => '*/*', 'User-Agent' => 'Ruby'} } response = { :status => 200, :body => {}, :headers => {} } stub_request(:get, new_review_url).with(request).to_return(response) end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
crp-0.0.6 | test/test_helper.rb |
crp-0.0.5 | test/test_helper.rb |
crp-0.0.4 | test/test_helper.rb |
crp-0.0.3 | test/test_helper.rb |