diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-10-02 10:19:30 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-02 10:19:30 -0500 |
commit | 89630a7c2c3d0f625742e2b84ec28479ff3ecef9 (patch) | |
tree | a20d26a8d1022c839d24bc1a583cfe3278d0a2c9 /activeresource/test/cases/base | |
parent | 8377646d68b32de362fefad0d752a923f6b36da6 (diff) | |
download | rails-89630a7c2c3d0f625742e2b84ec28479ff3ecef9.tar.gz rails-89630a7c2c3d0f625742e2b84ec28479ff3ecef9.tar.bz2 rails-89630a7c2c3d0f625742e2b84ec28479ff3ecef9.zip |
Cleanup whitespace introduced in 8377646 and f4f6888
Diffstat (limited to 'activeresource/test/cases/base')
-rw-r--r-- | activeresource/test/cases/base/load_test.rb | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/activeresource/test/cases/base/load_test.rb b/activeresource/test/cases/base/load_test.rb index 53fa94d07f..189a4d81fe 100644 --- a/activeresource/test/cases/base/load_test.rb +++ b/activeresource/test/cases/base/load_test.rb @@ -15,26 +15,21 @@ module Highrise module Deeply module Nested - class Note < ActiveResource::Base self.site = "http://37s.sunrise.i:3000" end - class Comment < ActiveResource::Base - self.site = "http://37s.sunrise.i:3000" - end - - module TestDifferentLevels - - class Note < ActiveResource::Base - self.site = "http://37s.sunrise.i:3000" - end - - end + class Comment < ActiveResource::Base + self.site = "http://37s.sunrise.i:3000" + end + module TestDifferentLevels + class Note < ActiveResource::Base + self.site = "http://37s.sunrise.i:3000" + end + end end end - end @@ -156,7 +151,7 @@ class BaseLoadTest < Test::Unit::TestCase assert_kind_of String, places.first assert_equal @deep[:street][:state][:places].first, places.first end - + def test_nested_collections_within_the_same_namespace n = Highrise::Note.new(:comments => [{ :name => "1" }]) assert_kind_of Highrise::Comment, n.comments.first @@ -171,6 +166,4 @@ class BaseLoadTest < Test::Unit::TestCase n = Highrise::Deeply::Nested::TestDifferentLevels::Note.new(:comments => [{ :name => "1" }]) assert_kind_of Highrise::Deeply::Nested::Comment, n.comments.first end - - end |