Sha256: d79ccf943416068f4e8411007e88c2aae7ef803fe7ff6cd82b1ee6a66e0d3973

Contents?: true

Size: 1.12 KB

Versions: 65

Compression:

Stored size: 1.12 KB

Contents

require "buildtasks/manifest/spec_helper"

describe "manifest:prepare" do

  include SC::SpecHelpers
  include SC::ManifestSpecHelpers

  before do
    std_before
  end

  def run_task; super('manifest:prepare'); end

  it "sets build_root => target.build_root/language/build_number" do
    run_task
    expected = File.join(@target.build_root, 'fr', @target.build_number)
    @manifest.build_root.should == expected
  end

  it "sets staging_root => staging_root/language/build_number" do
    run_task
    expected = File.join(@target.staging_root, 'fr', @target.build_number)
    @manifest.staging_root.should == expected
  end

  it "sets url_root => url_root/language/build_number" do
    run_task
    expected = [@target.url_root, 'fr', @target.build_number] * '/'
    @manifest.url_root.should == expected
  end

  it "sets source_root => target.source_root" do
    run_task
    @manifest.source_root.should == @target.source_root
  end

  it "sets index_root => index_root/language/build_number" do
    run_task
    expected = [@target.index_root, 'fr', @target.build_number] * '/'
    @manifest.index_root.should == expected
  end

end

Version data entries

65 entries across 65 versions & 1 rubygems

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