Sha256: 497bf558bb1e9d080ec557da133d278744e85d9063c00a8a3cb378a03714632b

Contents?: true

Size: 680 Bytes

Versions: 2

Compression:

Stored size: 680 Bytes

Contents

require 'thor/group'

module WatirInstall
  module Generators
    class Example < Thor::Group
      include Thor::Actions

      def self.source_root
        "#{File.dirname(__FILE__)}/example"
      end

      def name
        'google_search'
      end

      def support_files
        template "spec/support/pages/home.rb.tt", "spec/support/pages/home.rb"
        template "spec/support/pages/results.rb.tt", "spec/support/pages/results.rb"
      end

      def data_files
        template "spec/support/data/search.rb.tt", "spec/support/data/search.rb"
      end

      def test_files
        template "spec/search_spec.rb.tt", "spec/search_spec.rb"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
watir_install-0.3.1 lib/watir_install/generators/example.rb
watir_install-0.3.0 lib/watir_install/generators/example.rb