Skip to content

Commit

Permalink
Fix flaky specs due to load order (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
westonganger authored Sep 12, 2024
1 parent fea7b0f commit 4f05404
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration/e2e_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ def confirm_pdf_format(source)
end

test "registers :pdf mime type" do
get "/reports/sample" # trigger action view load

assert Mime::Type.lookup_by_extension(:pdf)
end

test "registers :prawn template handler" do
get "/reports/sample" # trigger action view load

assert ActionView::Template::Handlers.extensions.include?(:prawn)
end

Expand Down

0 comments on commit 4f05404

Please sign in to comment.