class WatirInstall::Generators::Example
Public Class Methods
source_root()
click to toggle source
# File lib/watir_install/generators/example.rb, line 8 def self.source_root "#{File.dirname(__FILE__)}/example" end
Public Instance Methods
data_files()
click to toggle source
# File lib/watir_install/generators/example.rb, line 21 def data_files template "spec/support/data/search.rb.tt", "spec/support/data/search.rb" end
name()
click to toggle source
# File lib/watir_install/generators/example.rb, line 12 def name 'google_search' end
support_files()
click to toggle source
# File lib/watir_install/generators/example.rb, line 16 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
test_files()
click to toggle source
# File lib/watir_install/generators/example.rb, line 25 def test_files template "spec/search_spec.rb.tt", "spec/search_spec.rb" end