Skip to content

Commit

Permalink
Adjust phrasing of "ignored class" message
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDaugherty committed Apr 24, 2020
1 parent a4fc5af commit af19911
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/better_errors/error_page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def text_heading(char, str)

def inspect_value(obj)
if BetterErrors.ignored_classes.include? obj.class.name
"<span class='unsupported'>(Class ignored. "\
"<span class='unsupported'>(Instance of ignored class. "\
"#{obj.class.name ? "Remove #{CGI.escapeHTML(obj.class.name)} from" : "Modify"}"\
" BetterErrors.ignored_classes if you need to see it.)</span>"
else
Expand Down
4 changes: 2 additions & 2 deletions spec/better_errors/error_page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ module BetterErrors
end
expect(html).to have_tag('div.variables tr') do
with_tag('td.name', text: 'local_b')
with_tag('.unsupported', text: /Instance of ErrorPageTestIgnoredClass ignored/)
with_tag('.unsupported', text: /Instance of ignored class/)
with_tag('.unsupported', text: /BetterErrors\.ignored_classes/)
end
expect(html).to have_tag('div.variables tr') do
Expand All @@ -101,7 +101,7 @@ module BetterErrors
end
expect(html).to have_tag('div.variables tr') do
with_tag('td.name', text: '@inst_d')
with_tag('.unsupported', text: /Instance of ErrorPageTestIgnoredClass ignored./)
with_tag('.unsupported', text: /Instance of ignored class/)
with_tag('.unsupported', text: /BetterErrors\.ignored_classes/)
end
end
Expand Down

0 comments on commit af19911

Please sign in to comment.