From a9295551a60e03b9fc1fe16f6fb9027dfc5bf371 Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Fri, 7 Jul 2017 19:32:33 -0300 Subject: Use attr_reader --- test/acceptance/acceptance_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/acceptance/acceptance_test.rb b/test/acceptance/acceptance_test.rb index a5f9258..6d56195 100644 --- a/test/acceptance/acceptance_test.rb +++ b/test/acceptance/acceptance_test.rb @@ -5,6 +5,10 @@ require "highline/import" class HighLine::AcceptanceTest @answers ||= {} + class << self + attr_reader :answers + end + def self.check caller_file = File.basename(caller(1..1).first.split(":")[-3]) @@ -14,10 +18,6 @@ class HighLine::AcceptanceTest test.check end - def self.answers - @answers - end - def self.answers_for_report answers.map do |file, answer| "#{file}: #{answer}" -- cgit v1.2.1