Top Level Namespace

Includes:
Log4r

Defined Under Namespace

Modules: DeepMerge, Diffable, Oats Classes: ApplicationLogs, Array, Diff, Hash, OatsAssertError, OatsBadInput, OatsError, OatsExit, OatsOsshMissingInput, OatsReportError, OatsSetupError, OatsTestError, OatsTestExit, OatsVerifyError, String

Instance Method Summary collapse

Instance Method Details

#diffrange(a, b) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/oats/unixdiff.rb', line 14

def diffrange(a, b)
  if (a == b)
    "#{a}"
  else
    "#{a},#{b}"
  end
end

#loadfile(filename) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/oats/unixdiff.rb', line 6

def loadfile(filename)
  lines = nil
  File.open(filename, "r") { |f|
    lines = f.readlines
  }
  return lines
end

#seleniumObject

Advertised OATS methods to be used from tests Selenium object accessor created on demand by Oat.browser



6
7
8
# File 'lib/oats/oselenium.rb', line 6

def selenium
  $selenium || Oats.browser
end