From 3bed5b62465c4fc3dae223da12d485b59840402c Mon Sep 17 00:00:00 2001 From: Kenta Murata Date: Wed, 22 May 2024 11:31:16 +0900 Subject: [PATCH] Fix setup in scatter_plot test --- test/plot_methods/scatter_plot_test.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/plot_methods/scatter_plot_test.rb b/test/plot_methods/scatter_plot_test.rb index f373ffb2..2a894caa 100644 --- a/test/plot_methods/scatter_plot_test.rb +++ b/test/plot_methods/scatter_plot_test.rb @@ -3,11 +3,12 @@ class PlotMethodScatterPlotTest < Test::Unit::TestCase sub_test_case("function-call style") do def setup - super - - @x = Array.new(20) {|i| rand(i.to_f) } - @y = Array.new(20) {|i| rand * @x[i] } - @data = {x: @x, y: @y} + super do + @x = Array.new(20) {|i| rand(i.to_f) } + @y = Array.new(20) {|i| rand * @x[i] } + @data = {x: @x, y: @y} + yield + end end sub_test_case("wide-form input") do