@@ -18,15 +18,15 @@ def test_inspect_class
1818
1919 def test_inspect_instance
2020 topic = topics ( :first )
21- assert_equal %(#<Topic id: 1, title: "The First Topic", author_name: "David", author_email_address: "david@loudthinking.com", written_on: "#{ topic . written_on . to_fs ( :inspect ) } ", bonus_time: "#{ topic . bonus_time . to_fs ( :inspect ) } ", last_read: "#{ topic . last_read . to_fs ( :inspect ) } ", content: "Have a nice day", important: nil, approved: false, replies_count: 1, unique_replies_count: 0, parent_id: nil, parent_title: nil, type: nil, group: nil, created_at: "#{ topic . created_at . to_fs ( :inspect ) } ", updated_at: "#{ topic . updated_at . to_fs ( :inspect ) } ">) , topic . inspect
21+ assert_equal %(#<Topic id: 1, title: "The First Topic", author_name: "David", author_email_address: "david@loudthinking.com", written_on: "#{ topic . written_on . to_fs ( :inspect ) } ", bonus_time: "#{ topic . bonus_time . to_fs ( :inspect ) } ", last_read: "#{ topic . last_read . to_fs ( :inspect ) } ", content: "Have a nice day", important: nil, binary_content: nil, approved: false, replies_count: 1, unique_replies_count: 0, parent_id: nil, parent_title: nil, type: nil, group: nil, created_at: "#{ topic . created_at . to_fs ( :inspect ) } ", updated_at: "#{ topic . updated_at . to_fs ( :inspect ) } ">) , topic . inspect
2222 end
2323
2424 def test_inspect_instance_with_lambda_date_formatter
2525 before = Time ::DATE_FORMATS [ :inspect ]
2626 Time ::DATE_FORMATS [ :inspect ] = -> ( date ) { "my_format" }
2727 topic = topics ( :first )
2828
29- assert_equal %(#<Topic id: 1, title: "The First Topic", author_name: "David", author_email_address: "david@loudthinking.com", written_on: "my_format", bonus_time: "my_format", last_read: "2004-04-15", content: "Have a nice day", important: nil, approved: false, replies_count: 1, unique_replies_count: 0, parent_id: nil, parent_title: nil, type: nil, group: nil, created_at: "my_format", updated_at: "my_format">) , topic . inspect
29+ assert_equal %(#<Topic id: 1, title: "The First Topic", author_name: "David", author_email_address: "david@loudthinking.com", written_on: "my_format", bonus_time: "my_format", last_read: "2004-04-15", content: "Have a nice day", important: nil, binary_content: nil, approved: false, replies_count: 1, unique_replies_count: 0, parent_id: nil, parent_title: nil, type: nil, group: nil, created_at: "my_format", updated_at: "my_format">) , topic . inspect
3030
3131 ensure
3232 Time ::DATE_FORMATS [ :inspect ] = before
@@ -65,6 +65,7 @@ def test_pretty_print_new
6565 last_read: nil,
6666 content: nil,
6767 important: nil,
68+ binary_content: nil,
6869 approved: true,
6970 replies_count: 0,
7071 unique_replies_count: 0,
@@ -94,6 +95,7 @@ def test_pretty_print_persisted
9495 last_read: Thu, 15 Apr 2004,
9596 content: "Have a nice day",
9697 important: nil,
98+ binary_content: nil,
9799 approved: false,
98100 replies_count: 1,
99101 unique_replies_count: 0,
0 commit comments