Sha256: 63fc7a20033eecbfb80d889bfd38761323f385214938d1f5887bae31cbe64c4e
Contents?: true
Size: 968 Bytes
Versions: 10
Compression:
Stored size: 968 Bytes
Contents
# frozen_string_literal: true require_relative 'generator' class HelpersGenerator < Generator def generate_raider_helper template('helpers/raider_helper.tt', "#{name}/helpers/raider.rb") end def generate_allure_helper template('helpers/allure_helper.tt', "#{name}/helpers/allure_helper.rb") end def generate_browser_helper template('helpers/browser_helper.tt', "#{name}/helpers/browser_helper.rb") if @_initializer.first.include?('watir') end def generate_spec_helper template('helpers/spec_helper.tt', "#{name}/helpers/spec_helper.rb") if @_initializer.first.include?('rspec') end def generate_selenium_helper return unless @_initializer.first.include?('selenium') template('helpers/selenium_helper.tt', "#{name}/helpers/selenium_helper.rb") end def generate_driver_helper return if @_initializer.first.include?('watir') template('helpers/driver_helper.tt', "#{name}/helpers/driver_helper.rb") end end
Version data entries
10 entries across 10 versions & 1 rubygems