mirror of
https://github.com/github/rails.git
synced 2026-01-08 22:27:59 -05:00
removed a contrived ARes example
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
|
||||
require 'active_resource'
|
||||
require 'active_support/core_ext/hash/conversions'
|
||||
|
||||
ActiveSupport::XmlMini.backend = ENV['XMLMINI'] || 'REXML'
|
||||
ActiveResource::HttpMock.respond_to do |mock|
|
||||
mock.get '/people/1.xml', {}, { :id => 1, :name => 'bob' }.to_xml(:root => 'person')
|
||||
end
|
||||
|
||||
class Person < ActiveResource::Base
|
||||
self.site = 'http://localhost/'
|
||||
end
|
||||
|
||||
bob = Person.find(1)
|
||||
puts bob.inspect
|
||||
Reference in New Issue
Block a user