From 4f49f0f07da3d59bc227babe9fcb7eafe42101c7 Mon Sep 17 00:00:00 2001 From: Mostafa Ahangarha Date: Sun, 24 Sep 2023 22:51:14 +0330 Subject: [PATCH] Fix rubocop issues --- test/react/server_rendering/manifest_container_test.rb | 2 +- test/react/server_rendering/yaml_manifest_container_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/react/server_rendering/manifest_container_test.rb b/test/react/server_rendering/manifest_container_test.rb index 740050ef1..1d8833cdc 100644 --- a/test/react/server_rendering/manifest_container_test.rb +++ b/test/react/server_rendering/manifest_container_test.rb @@ -23,7 +23,7 @@ def teardown def test_find_asset_gets_asset_contents application_js_content = @manifest_container.find_asset("application.js") - assert(application_js_content.length > 50_000, "It's the compiled file") + assert_operator(application_js_content.length, :>, 50_000, "It's the compiled file") end end end diff --git a/test/react/server_rendering/yaml_manifest_container_test.rb b/test/react/server_rendering/yaml_manifest_container_test.rb index 56fdc9903..14ac45f9d 100644 --- a/test/react/server_rendering/yaml_manifest_container_test.rb +++ b/test/react/server_rendering/yaml_manifest_container_test.rb @@ -17,7 +17,7 @@ def teardown def test_find_asset_gets_asset_contents application_js_content = @manifest_container.find_asset("application.js") - assert(application_js_content.length > 50_000, "It's the compiled file") + assert_operator(application_js_content.length, :>, 50_000, "It's the compiled file") end end end