Sha256: 989f50eb3e55cc0dc375891f8fb3dd043286cf55920eba7a45f9273bb2be1cfd
Contents?: true
Size: 772 Bytes
Versions: 2
Compression:
Stored size: 772 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') 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
storage_room-0.2.1 | spec/spec_helper.rb |
storage_room-0.2.0 | spec/spec_helper.rb |