Class: Watir::RSpec

Inherits:
Object
  • Object
show all
Defined in:
lib/watir/rspec.rb,
lib/watir/rspec/cli.rb,
lib/watir/rspec/helper.rb,
lib/watir/rspec/version.rb,
lib/watir/rspec/matchers.rb,
lib/watir/rspec/html_formatter.rb,
lib/watir/rspec/matchers/base_matcher.rb

Defined Under Namespace

Modules: Helper, Matchers Classes: HtmlFormatter

Constant Summary collapse

VERSION =
"3.0.0"

Class Method Summary collapse

Class Method Details

.file_path(file_name, description = nil) ⇒ String

Generate unique file path for the current spec. If the file will be created during that spec and spec fails then it will be shown automatically in the html report.

Parameters:

  • file_name (String)

    File name to be used for file. Will be used as a part of the complete name.

Returns:

  • (String)

    Absolute path for the unique file name.

Raises:



12
13
14
# File 'lib/watir/rspec.rb', line 12

def file_path(file_name, description=nil)
  formatter.file_path(file_name, description)
end