Sha256: 75aafcacdf1489da530a6c23e66c6751f8f39caaca335579c84374187cae2919

Contents?: true

Size: 823 Bytes

Versions: 7

Compression:

Stored size: 823 Bytes

Contents

require 'bundler'
Bundler.setup

require 'test/unit'
require 'minitest/spec'

require 'roar/representer'
require 'roar/representer/feature/http_verbs'

begin
  require 'turn'

  Turn.config do |config|
    config.format  = :dotted
    # config.trace   = true
  end
rescue LoadError
end

module AttributesContructor
  def initialize(attrs={})
    attrs.each do |k,v|
      instance_variable_set("@#{k}", v)
    end
  end
end

class Item
  include AttributesContructor
  attr_accessor :value
end

class Position
  include AttributesContructor
  attr_accessor :id, :item
end

class Order
  include AttributesContructor
  attr_accessor :id, :items
end

require "test_xml/mini_test"
require "roar/representer/xml"

require 'sham_rack'
require './test/fake_server'

ShamRack.at('roar.example.com').rackup do
  run FakeServer
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
roar-0.11.4 test/test_helper.rb
roar-0.11.3 test/test_helper.rb
roar-0.11.2 test/test_helper.rb
roar-0.11.1 test/test_helper.rb
roar-0.11.0 test/test_helper.rb
roar-0.10.2 test/test_helper.rb
roar-0.10.1 test/test_helper.rb