lib/scoutui/base/test_settings.rb in scoutui-0.1.2 vs lib/scoutui/base/test_settings.rb in scoutui-0.1.3

- old
+ new

@@ -9,11 +9,10 @@ attr_accessor :browserType attr_accessor :eut attr_accessor :user attr_accessor :eyesReport attr_accessor :url - attr_accessor :localization def initialize(opts) @bEyes=false @browserType=opts[:but] || :firefox @@ -21,20 +20,17 @@ @lang=opts[:lang] || "en-us" @user=opts[:user] || nil @eyesReport=opts[:eyesReport] || nil @url=opts[:url]||nil - @localization_test_data='/Users/pkim/working/nui-qa/apps/gat/tests/localization.json' - @localization_json = File.read(@localization_test_data) - @localizationObj = JSON.parse(@localization_json) end def setConfig(c) if c.instance_of?(Hash) @testConfig=c else - # a JSON file was passed + # a JSON file was passed (ERROR handling needed) jFile = File.read(c) @testConfig=JSON.parse(jFile) end @testConfig @@ -45,15 +41,9 @@ @testConfig["dut"] end def setLang(lang) @lang=lang - end - - - def getLocalization() - # @testConfig["language-mapping"][@lang] - @localizationObj["language-mapping"][@lang] end def getUrl() @url end