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

Version Path
storage_room-0.3.24 spec/spec_helper.rb
storage_room-0.3.23 spec/spec_helper.rb
storage_room-0.3.22 spec/spec_helper.rb
storage_room-0.3.21 spec/spec_helper.rb
storage_room-0.3.20 spec/spec_helper.rb
storage_room-0.3.19 spec/spec_helper.rb
storage_room-0.3.18 spec/spec_helper.rb
storage_room-0.3.17 spec/spec_helper.rb
storage_room-0.3.16 spec/spec_helper.rb
storage_room-0.3.15 spec/spec_helper.rb
storage_room-0.3.14 spec/spec_helper.rb
storage_room-0.3.13 spec/spec_helper.rb
storage_room-0.3.12 spec/spec_helper.rb
storage_room-0.3.11 spec/spec_helper.rb
storage_room-0.3.10 spec/spec_helper.rb
storage_room-0.3.9 spec/spec_helper.rb
storage_room-0.3.8 spec/spec_helper.rb
storage_room-0.3.7 spec/spec_helper.rb
storage_room-0.3.6 spec/spec_helper.rb