Sha256: 57a05906cbd2c443c776e847cab6799aeae2e251ed249a7b1ba72d885888a0dc

Contents?: true

Size: 1.11 KB

Versions: 6

Compression:

Stored size: 1.11 KB

Contents

begin
  require 'spec'
rescue LoadError
  require 'rubygems'
  gem 'rspec'
  require 'spec'
end
require 'time'

module ResponseHelper
  def responses(key)
    File.read(File.join(File.dirname(__FILE__), "responses", "#{key}.xml"))
  end
end

Spec::Runner.configure do |config|
  include ResponseHelper
end

XML_ERROR_RESPONSE = File.read(File.join(File.dirname(__FILE__), "responses", "error.xml"))
XML_LOCATION_RESPONSE = File.read(File.join(File.dirname(__FILE__), "responses", "user.xml"))

XML_SUCCESS_RESPONSE = <<-RESPONSE
<?xml version="1.0" encoding="utf-8"?>
<rsp stat="ok">
  <user token="16w3z6ysudxt"/>
</rsp>
RESPONSE

XML_LOOKUP_RESPONSE = File.read(File.join(File.dirname(__FILE__), "responses", "lookup.xml"))

XML_FAIL_LOOKUP_RESPONSE = <<-RESPONSE
<?xml version="1.0" encoding="utf-8"?>
<rsp stat="fail">
  <err msg="Place can't be identified." code="6"/>
</rsp>
RESPONSE

XML_WITHIN_RESPONSE = File.read(File.join(File.dirname(__FILE__), "responses", "within.xml"))

XML_RECENT_RESPONSE = File.read(File.join(File.dirname(__FILE__), "responses", "recent.xml"))

require File.dirname(__FILE__) + '/../lib/fireeagle'

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
jnewland-fireeagle-0.8.0.1 spec/spec_helper.rb
jnewland-fireeagle-0.8.99.1 spec/spec_helper.rb
mojodna-fireeagle-0.8.0.1 spec/spec_helper.rb
mojodna-fireeagle-0.8.99.1 spec/spec_helper.rb
mojodna-fireeagle-0.8.99 spec/spec_helper.rb
fireeagle-0.8.0.1 spec/spec_helper.rb