Sha256: eeee80cdfdf7e00c80c1b36502f2b3355562b34905d32b17648f8a6fef66bd46

Contents?: true

Size: 466 Bytes

Versions: 2

Compression:

Stored size: 466 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

require 'webmock/rspec'
require 'bible_gateway'

RSpec.configure do |config|

end

def fixture_file(filename)
  return '' if filename == ''
  file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/' + filename)
  File.read(file_path)
end

def stub_get(url, filename, status=200)
  options = {:body => fixture_file(filename)}
  options.merge!({:status => status})
  stub_request(:get, url).to_return(options)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bible_gateway-0.0.4 spec/spec_helper.rb
bible_gateway-0.0.3 spec/spec_helper.rb