Skip to content

Commit

Permalink
test: fix variable name
Browse files Browse the repository at this point in the history
JSON is a string format. So json_string is strange.
  • Loading branch information
kou committed Jul 23, 2014
1 parent ab47cf9 commit b2bd6b2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/test-analyzer.rb
Expand Up @@ -95,10 +95,9 @@ def run_analyzer(*arguments)
end
end

def normalize_json(json_string)
json_string = json_string.gsub(/(\"start_time\"):\d+/,
"\\1:START_TIME")
json_string.gsub(/(\"last_time\"):\d+/, "\\1:LAST_TIME")
def normalize_json(json)
json = json.gsub(/(\"start_time\"):\d+/, "\\1:START_TIME")
json.gsub(/(\"last_time\"):\d+/, "\\1:LAST_TIME")
end

def expected_analyzed_query(file_name)
Expand Down

0 comments on commit b2bd6b2

Please sign in to comment.