Sha256: 101f759b7be12e5e08f62c4ce0fc921897c1b365521f19762f28b005eed48b44
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true require_relative 'generator' module RubyRaider 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 if @_initializer.first.include?('watir') template('helpers/browser_helper.tt', "#{name}/helpers/browser_helper.rb") end end def generate_spec_helper if @_initializer.first.include?('rspec') template('helpers/spec_helper.tt', "#{name}/helpers/spec_helper.rb") end end def generate_selenium_helper if @_initializer.first.include?('selenium') template('helpers/selenium_helper.tt', "#{name}/helpers/selenium_helper.rb") end end def generate_driver_helper unless @_initializer.first.include?('watir') template('helpers/driver_helper.tt', "#{name}/helpers/driver_helper.rb") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby_raider-0.2.4 | lib/generators/helper_generator.rb |
ruby_raider-0.2.3 | lib/generators/helper_generator.rb |