Skip to content

Commit

Permalink
Merge pull request #44725 from pixeltrix/fix-actiontext-deprecations
Browse files Browse the repository at this point in the history
Fix deprecation warnings in Action Text tests
  • Loading branch information
tenderlove committed Mar 19, 2022
2 parents d0ed24f + e9e2fd6 commit 88f71f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions actiontext/test/integration/controller_render_test.rb
Expand Up @@ -4,7 +4,7 @@

class ActionText::ControllerRenderTest < ActionDispatch::IntegrationTest
test "uses current request environment" do
blob = create_file_blob(filename: "racecar.jpg", content_type: "image/jpg")
blob = create_file_blob(filename: "racecar.jpg", content_type: "image/jpeg")
message = Message.create!(content: ActionText::Content.new.append_attachables(blob))

host! "loocalhoost"
Expand All @@ -15,7 +15,7 @@ class ActionText::ControllerRenderTest < ActionDispatch::IntegrationTest
end

test "renders as HTML when the request format is not HTML" do
blob = create_file_blob(filename: "racecar.jpg", content_type: "image/jpg")
blob = create_file_blob(filename: "racecar.jpg", content_type: "image/jpeg")
message = Message.create!(content: ActionText::Content.new.append_attachables(blob))

host! "loocalhoost"
Expand All @@ -34,7 +34,7 @@ class ActionText::ControllerRenderTest < ActionDispatch::IntegrationTest
end

test "resolves partials when controller is namespaced" do
blob = create_file_blob(filename: "racecar.jpg", content_type: "image/jpg")
blob = create_file_blob(filename: "racecar.jpg", content_type: "image/jpeg")
message = Message.create!(content: ActionText::Content.new.append_attachables(blob))

get admin_message_path(message)
Expand Down
2 changes: 1 addition & 1 deletion actiontext/test/integration/mailer_render_test.rb
Expand Up @@ -7,7 +7,7 @@ class ActionText::MailerRenderTest < ActionMailer::TestCase
original_default_url_options = ActionMailer::Base.default_url_options
ActionMailer::Base.default_url_options = { host: "hoost" }

blob = create_file_blob(filename: "racecar.jpg", content_type: "image/jpg")
blob = create_file_blob(filename: "racecar.jpg", content_type: "image/jpeg")
message = Message.new(content: ActionText::Content.new.append_attachables(blob))

MessagesMailer.with(recipient: "test", message: message).notification.deliver_now
Expand Down

0 comments on commit 88f71f5

Please sign in to comment.