Sha256: c5c11f6395d942c1768b55a514d3ceead7a39fd9125ec66271a3005a91825daf

Contents?: true

Size: 775 Bytes

Versions: 5

Compression:

Stored size: 775 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'

Spec::Runner.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

5 entries across 5 versions & 1 rubygems

Version Path
storage_room-0.1.4 spec/spec_helper.rb
storage_room-0.1.3 spec/spec_helper.rb
storage_room-0.1.2 spec/spec_helper.rb
storage_room-0.1.1 spec/spec_helper.rb
storage_room-0.1.0 spec/spec_helper.rb