Class: Jaspec::Tasks

Inherits:
Object
  • Object
show all
Includes:
Rake::DSL
Defined in:
lib/jaspec/tasks.rb

Instance Method Summary collapse

Constructor Details

#initialize(spec_dir) ⇒ Tasks

Returns a new instance of Tasks.



7
8
9
10
11
12
13
14
# File 'lib/jaspec/tasks.rb', line 7

def initialize(spec_dir)
  namespace :spec do
    desc 'Execute all Jaspec specs'
    task :jaspec do
      Jaspec::Runner.run_all(File.join(Dir.pwd, spec_dir)) || exit(1)
    end
  end
end