diff options
-rw-r--r-- | test/acceptance/acceptance_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
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}" |