Upgrade rubocop and style guide for ruby 2.7 compatibility

This commit is contained in:
Dylan Thacker-Smith
2020-01-09 13:15:34 -05:00
parent 0847bf560f
commit 67eca3f58d
6 changed files with 32 additions and 30 deletions
+2 -2
View File
@@ -159,13 +159,13 @@ class RenderProfilingTest < Minitest::Test
t.render!("collection" => ["one", "two"])
leaf = t.profiler[0].children[0]
assert_operator leaf.self_time, :>, 0
assert_operator(leaf.self_time, :>, 0)
end
def test_profiling_supports_total_time
t = Template.parse("{% if true %} {% increment test %} {{ test }} {% endif %}", profile: true)
t.render!
assert_operator t.profiler[0].total_time, :>, 0
assert_operator(t.profiler[0].total_time, :>, 0)
end
end