Skip to content

Commit

Permalink
Reduce scope
Browse files Browse the repository at this point in the history
Output shuold not be accessable because it is used in only one method.
  • Loading branch information
kou committed Dec 13, 2012
1 parent 1b7ab2a commit 2ad0fdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test-analyzer.rb
Expand Up @@ -48,10 +48,10 @@ def test_n_entries

private
def run_analyzer(*arguments)
@output = Tempfile.new("output.actual").path
arguments << "--output" << @output
output = Tempfile.new("output.actual").path
arguments << "--output" << output
@analyzer.run(*arguments)
File.read(@output)
File.read(output)
end

def normalize_json(json_string)
Expand Down

0 comments on commit 2ad0fdc

Please sign in to comment.