Sha256: b12ed2b39627d1e4e06fba330aa684d04d045f2ae4e06f62f5ff3d34acc624d2
Contents?: true
Size: 990 Bytes
Versions: 4
Compression:
Stored size: 990 Bytes
Contents
require File.join(File.dirname(__FILE__), %w[.. .. spec_helper]) module SC::ManifestSpecHelpers def std_before @project = fixture_project :real_world @target = @project.target_for :sproutcore @buildfile = @target.buildfile @config = @target.config @manifest = @target.manifest_for(:language => :fr) @target.prepare! # make sure its ready for the manifest... end def run_task(task_name) @buildfile.invoke task_name, :manifest => @manifest, :target => @target, :project => @project, :config => @config end def entry_for(filename, opts={}) @manifest.entry_for(filename, opts) || @manifest.entry_for(filename, opts.merge(:hidden => true)) end # Verifies that the named task runs when the passed block is executed def should_run(task_name, &block) task = @buildfile.lookup(task_name) first_count = task.invoke_count yield if block_given? task.invoke_count.should > first_count end end
Version data entries
4 entries across 4 versions & 1 rubygems