rlafranchi/system_tester

View on GitHub
app/models/system_tester/select.rb

Summary

Maintainability
A
40 mins
Test Coverage
A
100%
module SystemTester
  class Select < Action
    def to_s
      "#{super}#{INDENT}select \"#{arg_one}\", from: \"#{arg_two}\"\n\n"
    end

    def self.friendly_type
      "Select"
    end

    def self.args
      [
        {
          name: 'arg_two',
          label: 'Select Label',
          type: 'text'
        },
        {
          name: 'arg_one',
          label: 'Option',
          type: 'text'
        }
      ]
    end
  end
end