Changeset 4886
- Timestamp:
- 08/31/06 07:55:31 (2 years ago)
- Files:
-
- trunk/activeresource/CHANGELOG (modified) (1 diff)
- trunk/activeresource/lib/active_resource/base.rb (modified) (1 diff)
- trunk/activeresource/test/base_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activeresource/CHANGELOG
r4826 r4886 1 1 *SVN* 2 2 3 * site= accepts URIs. [Jeremy Kemper] 4 3 5 * Initial checkin: object-oriented client for restful HTTP resources which follow the Rails convention. [DHH] trunk/activeresource/lib/active_resource/base.rb
r4492 r4886 5 5 class << self 6 6 def site=(site) 7 @@site = URI.parse(site)7 @@site = site.is_a?(URI) ? site : URI.parse(site) 8 8 end 9 9 10 10 def site 11 11 @@site trunk/activeresource/test/base_test.rb
r4492 r4886 17 17 ) 18 18 end 19 20 21 def test_site_accessor_accepts_uri_or_string_argument 22 site = URI.parse('http://localhost') 23 24 assert_nothing_raised { Person.site = 'http://localhost' } 25 assert_equal site, Person.site 26 27 assert_nothing_raised { Person.site = site } 28 assert_equal site, Person.site 29 end 30 19 31 20 32 def test_collection_name