Sha256: eae1c402952f53449404e5c081464ae2016782f3564d641aee7639ebb644b48f
Contents?: true
Size: 807 Bytes
Versions: 6
Compression:
Stored size: 807 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'storage_room' # require 'spec' # require 'spec/autorun' require 'webmock/rspec' RSpec.configure do |config| config.include WebMock::API config.before(:each) do StorageRoom.authenticate('USER_ID', 'APPLICATION_API_KEY') StorageRoom::IdentityMap.clear end end def stub_url(url) "APPLICATION_API_KEY:X@api.storageroomapp.com/accounts/USER_ID#{url}" end def fixture_file(name) path = File.expand_path("#{File.dirname(__FILE__)}/fixtures/#{name}") File.read(path) end def mock_httparty(code) httparty = mock('httparty') response = mock('response') response.stub(:code).and_return(code.to_s) httparty.stub(:response).and_return(response) httparty end
Version data entries
6 entries across 6 versions & 1 rubygems