From fd5de3951ad12a60da529f6e20250a2627023003 Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Wed, 5 Jul 2017 07:04:15 -0300 Subject: Remove class variable --- test/acceptance/acceptance_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/acceptance/acceptance_test.rb b/test/acceptance/acceptance_test.rb index 30aceaa..be050dd 100644 --- a/test/acceptance/acceptance_test.rb +++ b/test/acceptance/acceptance_test.rb @@ -3,7 +3,7 @@ require 'highline/import' class HighLine::AcceptanceTest - @@answers ||= {} + @answers ||= {} def self.check caller_file = File.basename(caller[0].split(":")[-3]) @@ -15,7 +15,7 @@ class HighLine::AcceptanceTest end def self.answers - @@answers + @answers end def self.answers_for_report @@ -62,7 +62,7 @@ class HighLine::AcceptanceTest print question answer = STDIN.gets.chomp answer = "y" if answer.empty? - @@answers[caller_file] = answer + HighLine::AcceptanceTest.answers[caller_file] = answer puts end -- cgit v1.2.1