Skip to content

Commit

Permalink
Use raw response body to test string output
Browse files Browse the repository at this point in the history
  • Loading branch information
allmarkedup committed Aug 30, 2023
1 parent d0a65ac commit aa9aa19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/requests/previews_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
it "doesn't beautify HTML in the preview" do
get lookbook_preview_path("whitespace_significant/default")

expect(response.parsed_body.to_s.include?("<div>one</div><div>two</div><div>three</div>")).to be true
expect(response.body.include?("<div>one</div><div>two</div><div>three</div>")).to be true
end

context "ViewComponents" do
Expand Down

0 comments on commit aa9aa19

Please sign in to comment.