aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/reflection_test.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-12-02 17:59:55 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-12-02 20:28:24 -0200
commit42c51b8527e49ae2d7a0f6cc009e53865b7910c1 (patch)
treef13997f1c860650fa60612245ec371e68c1a4b38 /activerecord/test/cases/reflection_test.rb
parent6673d88f6f234ab493ad314f930901ce3a288da8 (diff)
downloadrails-42c51b8527e49ae2d7a0f6cc009e53865b7910c1.tar.gz
rails-42c51b8527e49ae2d7a0f6cc009e53865b7910c1.tar.bz2
rails-42c51b8527e49ae2d7a0f6cc009e53865b7910c1.zip
Doesn't need to sort, lets users of attribute_names sort them if they want
Diffstat (limited to 'activerecord/test/cases/reflection_test.rb')
-rw-r--r--activerecord/test/cases/reflection_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/reflection_test.rb b/activerecord/test/cases/reflection_test.rb
index 3b9e4f42a6..389ca9eae6 100644
--- a/activerecord/test/cases/reflection_test.rb
+++ b/activerecord/test/cases/reflection_test.rb
@@ -25,7 +25,7 @@ class ReflectionTest < ActiveRecord::TestCase
def test_read_attribute_names
assert_equal(
%w( id title author_name author_email_address bonus_time written_on last_read content group approved replies_count parent_id parent_title type created_at updated_at ).sort,
- @first.attribute_names
+ @first.attribute_names.sort
)
end