Module: Yast::RSpec::Shortcuts

Includes:
UIShortcuts
Defined in:
src/ruby/yast/rspec/shortcuts.rb

Overview

RSpec extension adding commodity shortcuts to enhance readability

Constant Summary

Constants included from UIShortcuts

UIShortcuts::UI_TERMS

Instance Method Summary collapse

Instance Method Details

#path(route) ⇒ Yast::Path

Shortcut for generating Yast::Path objects

Parameters:

  • route (String)

    textual representation of the path

Returns:



14
15
16
# File 'src/ruby/yast/rspec/shortcuts.rb', line 14

def path(route)
  Yast::Path.new(route)
end

#term(*args) ⇒ Yast::Term

Shortcut for generating Yast::Term objects

Parameters:

  • args

    parameter for term initialization

Returns:



22
23
24
# File 'src/ruby/yast/rspec/shortcuts.rb', line 22

def term(*args)
  Yast::Term.new(*args)
end