Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed a contrived ARes example

  • Loading branch information...
commit fb9533569d0e4e98f29064280637198def05fb25 1 parent 2c90ddb
Josh Kalderimis joshk authored
Showing with 0 additions and 15 deletions.
  1. +0 −15 examples/simple.rb
15 examples/simple.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.