Sha256: ca298933d74abcde50ea71ae67f552961ce6b046acb9a4a6263f313a01932dc1
Contents?: true
Size: 849 Bytes
Versions: 19
Compression:
Stored size: 849 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_path(name) File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', name)) end def fixture_file(name) File.read(fixture_path(name)) 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
19 entries across 19 versions & 1 rubygems