Sha256: 6796e1a01eccf5512ec9fbb3ad17448f18562c56f615c8725cdad5396e365d78

Contents?: true

Size: 430 Bytes

Versions: 2

Compression:

Stored size: 430 Bytes

Contents

require 'rake/tasklib'

def mspec(name=:mspec, *args, &block)
  Albacore::MSpecTask.new(name, *args, &block)
end
  
module Albacore
  class MSpecTask < Albacore::AlbacoreTask
    def execute(name, task_args)
      @mspec = MSpecTestRunner.new
      @mspec.load_config_by_task_name(name)
      @block.call(@mspec, *task_args) unless @block.nil?
      @mspec.execute
      fail if @mspec.failed
    end    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-0.1.1 lib/rake/mspectask.rb
albacore-0.1.0 lib/rake/mspectask.rb