Class: WatirSpec::RakeTasks

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/watirspec/rake_tasks.rb

Instance Method Summary collapse

Constructor Details

#initializeRakeTasks

Returns a new instance of RakeTasks



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/watirspec/rake_tasks.rb', line 5

def initialize
  namespace :watirspec do
    desc 'Initialize WatirSpec'
    task :init do
      init_watirspec
      print_usage
    end

    desc 'List WatirSpec examples'
    task :list do
      print_specs
    end

    desc 'Run WatirSpec examples'
    task :run, %i(spec line) do |_, args|
      run(args)
    end
  end
end