Skip to content

Commit

Permalink
"Tests fixed"
Browse files Browse the repository at this point in the history
  • Loading branch information
Nj221102 authored Jan 30, 2024
1 parent 5021fc9 commit 43c38d7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tasks/check_html_fixtures.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,14 @@ def format_html(html)
)
# puts formatted_html
pretty_html = HtmlBeautifier.beautify(html)
begin

# Compare to fixture
dir_path = "test/wv/html_fixtures"
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 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 43c38d7

Please sign in to comment.