Sha256: aa5735741bcc2c4f3715606ebb70385a3acce378e3e00e70d27665aff372fd50

Contents?: true

Size: 388 Bytes

Versions: 65

Compression:

Stored size: 388 Bytes

Contents

require "spec_helper"

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

  it "should define tasks as part of namespace" do
    b = SC::Buildfile.define do
      namespace :foo do
        task :task1
      end

      task :task2
    end
    b.task_defined?('foo:task1').should be_true
    b.task_defined?(:task2).should be_true
    b.task_defined?('foo:task2').should be_false
  end

end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
sproutcore-1.11.0 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.11.0.rc3 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.11.0.rc2 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.11.0.rc1 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.10.3.1 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.10.2 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.10.1 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.10.0 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.10.0.rc.3 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.10.0.rc.2 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.10.0.rc.1 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.9.2 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.9.1 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.9.0 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.8.2.1 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.8.1 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.8.0 spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.7.1.beta-java spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.7.1.beta spec/lib/buildfile_commands/namespace_spec.rb
sproutcore-1.6.0.1-java spec/lib/buildfile_commands/namespace_spec.rb