Sha256: 4ed786d8aa497729c0df0dedbca923e0a3f442d04a7151473963ce506ce51e0f

Contents?: true

Size: 477 Bytes

Versions: 20

Compression:

Stored size: 477 Bytes

Contents

require File.join(File.dirname(__FILE__), %w[.. .. spec_helper])

describe SC::Buildfile::Commands, 'build_task' do

  it "should add a new task to the buildfile" do
    b = SC::Buildfile.define do
      build_task :task1 
    end
    b.task_defined?(:task1).should_not be_nil
  end
  
  it "should add a new task with class BuilTask" do
    b = SC::Buildfile.define do
      build_task :task1
    end
    b.lookup(:task1).class.should eql(SC::Buildfile::BuildTask)
  end

end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
sproutit-sproutcore-1.0.0.20090407205609 spec/lib/buildfile_commands/build_task_spec.rb
sproutit-sproutcore-1.0.0.20090408130025 spec/lib/buildfile_commands/build_task_spec.rb
sproutit-sproutcore-1.0.0.20090416161445 spec/lib/buildfile_commands/build_task_spec.rb
sproutit-sproutcore-1.0.20090721145236 spec/lib/buildfile_commands/build_task_spec.rb
sproutcore-1.0.1046 spec/lib/buildfile_commands/build_task_spec.rb
sproutcore-1.0.1043 spec/lib/buildfile_commands/build_task_spec.rb
sproutcore-1.0.1042 spec/lib/buildfile_commands/build_task_spec.rb
sproutcore-1.0.1037 spec/lib/buildfile_commands/build_task_spec.rb
sproutcore-1.0.1035 spec/lib/buildfile_commands/build_task_spec.rb
sproutcore-1.0.1031 spec/lib/buildfile_commands/build_task_spec.rb
sproutcore-1.0.1030 spec/lib/buildfile_commands/build_task_spec.rb
sproutcore-1.0.1029 spec/lib/buildfile_commands/build_task_spec.rb
sproutcore-1.0.1027 spec/lib/buildfile_commands/build_task_spec.rb
sproutcore-1.0.1028 spec/lib/buildfile_commands/build_task_spec.rb
sproutcore-1.0.1026 spec/lib/buildfile_commands/build_task_spec.rb
sproutcore-1.0.1025 spec/lib/buildfile_commands/build_task_spec.rb
sproutcore-1.0.1024 spec/lib/buildfile_commands/build_task_spec.rb
sproutcore-1.0.1009 spec/lib/buildfile_commands/build_task_spec.rb
sproutcore-1.0.1008 spec/lib/buildfile_commands/build_task_spec.rb
sproutcore-1.0.1003 spec/lib/buildfile_commands/build_task_spec.rb