lib/aipim-rails/parser.rb in aipim-rails-0.0.169 vs lib/aipim-rails/parser.rb in aipim-rails-0.0.172
- old
+ new
@@ -1,14 +1,13 @@
require 'aipim-rails/parser_helper'
module Parser
def self.init(filename)
- filename
+ parser(filename)
end
-
def self.tag_screenshot(line,file,workset)
if line && ParserHelper.is_tag?(line) && ParserHelper.is_screenshot?(line)
workset[:screenshot] = true
line = ParserHelper::read_line(file)
end
@@ -72,12 +71,12 @@
workset = {
screenshot: false,
screenshot_counter: 0,
screenshots: screenshots,
- feature_name: nil,
+ feature_name: "",
feature_description: [],
- context_name: nil,
+ context_name: "",
context_description: [],
scenarios: []
}
line = ParserHelper::read_line(file)