@@ -18,15 +18,15 @@ def test_inspect_class
18
18
19
19
def test_inspect_instance
20
20
topic = topics ( :first )
21
- assert_equal %(#<Topic id: 1, title: "The First Topic", author_name: "David", author_email_address: "[email protected] ", 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: "[email protected] ", 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
22
22
end
23
23
24
24
def test_inspect_instance_with_lambda_date_formatter
25
25
before = Time ::DATE_FORMATS [ :inspect ]
26
26
Time ::DATE_FORMATS [ :inspect ] = -> ( date ) { "my_format" }
27
27
topic = topics ( :first )
28
28
29
- assert_equal %(#<Topic id: 1, title: "The First Topic", author_name: "David", author_email_address: "[email protected] ", 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: "[email protected] ", 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
30
30
31
31
ensure
32
32
Time ::DATE_FORMATS [ :inspect ] = before
@@ -65,6 +65,7 @@ def test_pretty_print_new
65
65
last_read: nil,
66
66
content: nil,
67
67
important: nil,
68
+ binary_content: nil,
68
69
approved: true,
69
70
replies_count: 0,
70
71
unique_replies_count: 0,
@@ -94,6 +95,7 @@ def test_pretty_print_persisted
94
95
last_read: Thu, 15 Apr 2004,
95
96
content: "Have a nice day",
96
97
important: nil,
98
+ binary_content: nil,
97
99
approved: false,
98
100
replies_count: 1,
99
101
unique_replies_count: 0,
0 commit comments