Skip to content

Commit

Permalink
Updating Error message (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nj221102 authored Jan 30, 2024
1 parent 1c539a8 commit 30b3444
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tasks/check_html_fixtures.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,12 @@ def format_html(html)

# Compare to fixture
dir_path = "test/wv/html_fixtures"
begin
file_path = "#{dir_path}/#{file_name.split(".")[0]}.html"
expected_output = File.read(file_path)

rescue => e
raise "Hey, you need to regenerate fixtures, do this using command 'rake test:regenerate_html_fixtures' "
end
# Do the comparison
# diff = Diff::LCS.diff(pretty_html, expected_output)
diff_output = diff_as_string(pretty_html, expected_output, file_name)
Expand Down

0 comments on commit 30b3444

Please sign in to comment.