Sha256: 1477eff8fff5df783a39fde07ba03a694bdce1dc4d2312bcd7fb5f44fe629ba5
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 Bytes
Contents
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require "minitest/autorun" require "pry" require "bookscan_client" require "webmock/minitest" WEBMOCK_DATADIR = File.expand_path('../data', __FILE__) WEBMOCK_PAGES = { BookscanClient::URL::MYPAGE => "mypage.html", } WEBMOCK_PAGES.each do |url, filename| path = File.expand_path(filename, WEBMOCK_DATADIR) WebMock. stub_request(:get, url). to_return(body: File.new(path), status: 200, headers: { 'Content-Type' => 'text/html' }) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bookscan_client-0.0.1 | test/test_helper.rb |