From 81149344a5ba53b30e8ab7d77d605dc484a0a3ff Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Tue, 31 Mar 2020 10:19:25 -0400 Subject: [PATCH 1/2] Fix ParseTreeVisitorTest for ruby-head --- test/integration/parse_tree_visitor_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/parse_tree_visitor_test.rb b/test/integration/parse_tree_visitor_test.rb index d1af123..32dbcf6 100644 --- a/test/integration/parse_tree_visitor_test.rb +++ b/test/integration/parse_tree_visitor_test.rb @@ -238,7 +238,7 @@ class ParseTreeVisitorTest < Minitest::Test def traversal(template) ParseTreeVisitor .for(Template.parse(template).root) - .add_callback_for(VariableLookup, &:name) + .add_callback_for(VariableLookup) { |node| node.name } # rubocop:disable Style/SymbolProc end def visit(template) From c2f67398d05fcdd10db35a7f9541668323fedd06 Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Tue, 31 Mar 2020 10:49:29 -0400 Subject: [PATCH 2/2] Allow ruby-head failures Ignore an object allocation test failure on ruby-head for now. --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 6d7d0a9..e4109b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,8 @@ matrix: - rvm: *latest_ruby script: bundle exec rake memory_profile:run name: Profiling Memory Usage + allow_failures: + - rvm: ruby-head branches: only: