Sha256: 2039983c511cf9a06cbc1613a1a9955c2e4080f48c88f91ca52c6fc2e3263b06

Contents?: true

Size: 244 Bytes

Versions: 7

Compression:

Stored size: 244 Bytes

Contents

require 'json'

def response_body_for(request)
  fixture_file = File.open(ROOT_DIR + "spec/fixtures/api_responses/#{request}.json")
  File.read(fixture_file)
end

def fixture_file(filename)
  File.new(ROOT_DIR + "spec/fixtures/#{filename}")
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
phone_gap-build-0.7.0 spec/support/fixtures.rb
phone_gap-build-0.6.2 spec/support/fixtures.rb
phone_gap-build-0.6.1 spec/support/fixtures.rb
phone_gap-build-0.6.0 spec/support/fixtures.rb
phone_gap-build-0.5.1 spec/support/fixtures.rb
phone_gap-build-0.5.0 spec/support/fixtures.rb
phone_gap-build-0.4.0 spec/support/fixtures.rb