@@ -1706,20 +1706,24 @@ def test_to_xml_with_block
1706
1706
end
1707
1707
1708
1708
def test_except_attributes
1709
- assert_equal (
1710
- %w( author_name type id approved replies_count bonus_time written_on content author_email_address parent_id last_read ) ,
1711
- topics ( :first ) . attributes ( :except => :title ) . keys
1712
- )
1709
+ assert_deprecated do
1710
+ assert_equal (
1711
+ %w( author_name type id approved replies_count bonus_time written_on content author_email_address parent_id last_read ) ,
1712
+ topics ( :first ) . attributes ( :except => :title ) . keys
1713
+ )
1713
1714
1714
- assert_equal (
1715
- %w( replies_count bonus_time written_on content author_email_address parent_id last_read ) ,
1716
- topics ( :first ) . attributes ( :except => [ :title , :id , :type , :approved , :author_name ] ) . keys
1717
- )
1715
+ assert_equal (
1716
+ %w( replies_count bonus_time written_on content author_email_address parent_id last_read ) ,
1717
+ topics ( :first ) . attributes ( :except => [ :title , :id , :type , :approved , :author_name ] ) . keys
1718
+ )
1719
+ end
1718
1720
end
1719
1721
1720
1722
def test_include_attributes
1721
- assert_equal ( %w( title ) , topics ( :first ) . attributes ( :only => :title ) . keys )
1722
- assert_equal ( %w( title author_name type id approved ) , topics ( :first ) . attributes ( :only => [ :title , :id , :type , :approved , :author_name ] ) . keys )
1723
+ assert_deprecated do
1724
+ assert_equal ( %w( title ) , topics ( :first ) . attributes ( :only => :title ) . keys )
1725
+ assert_equal ( %w( title author_name type id approved ) , topics ( :first ) . attributes ( :only => [ :title , :id , :type , :approved , :author_name ] ) . keys )
1726
+ end
1723
1727
end
1724
1728
1725
1729
def test_type_name_with_module_should_handle_beginning
0 commit comments