test/fake_server.rb in roar-0.9.2 vs test/fake_server.rb in roar-0.10.0

- old
+ new

@@ -34,17 +34,17 @@ get "/bands/slayer" do {:name => "Slayer", :label => "Canadian Maple"}.to_json end - require Dir.pwd + '/order_representers' + require './test/order_representers' JSON::Order.class_eval do def items_url - "http://localhost:9999/orders/1/items" + "http://roar.example.com/orders/1/items" end def order_url(order) - "http://localhost:9999/orders/#{order}" + "http://roar.example.com/orders/#{order}" end def represented 1 end @@ -70,6 +70,5 @@ JSON::Order.new(:client_id => 1, :items => [JSON::Item.new(:article_id => "666-S", :amount => 1)]).serialize end end -FakeServer.run! :host => 'localhost', :port => 9999