Class: SystemTester::Visit

Inherits:
Action show all
Defined in:
app/models/system_tester/visit.rb

Constant Summary collapse

@@engines =
{}

Constants inherited from Step

Step::INDENT

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Action

bg_css, #icon

Methods inherited from Step

#bg_css, bg_css, #commented_title, #friendly_type, friendly_type, leafs, #module, #parent_type, parent_type, parent_types, #text_css, text_css

Class Method Details

.argsObject



9
10
11
12
13
14
15
16
17
18
# File 'app/models/system_tester/visit.rb', line 9

def self.args
  [
    {
      name: "arg_one",
      label: "Path or Url",
      type: "autocomplete",
      options: collect_routes(Rails.application.routes.routes)
    }
  ]
end

Instance Method Details

#to_sObject



5
6
7
# File 'app/models/system_tester/visit.rb', line 5

def to_s
  "#{super}#{INDENT}visit \"#{arg_one}\"\n\n"
end