Sha256: fc009eb80e17bfe4e477238f7eedeec86f699b61bc628414f0229ef9cecafc1b

Contents?: true

Size: 681 Bytes

Versions: 26

Compression:

Stored size: 681 Bytes

Contents

require 'spec_helper'

describe Vx::Builder::Script do
  let(:task)   { create :task }
  let(:source) { create :source }
  let(:script) { described_class.new task, source }
  subject { script }

  context "just created" do
    its(:source) { should eq source }
    its(:task)   { should eq task  }
  end

  context "#image" do
    subject { script.image }
    it { should eq 'one' }
  end

  context "#to_before_script" do
    subject { script.to_before_script }
    it { should be }
  end

  context "#to_after_script" do
    subject { script.to_after_script }
    it { should be }
  end

  context "#to_script" do
    subject { script.to_script }
    it { should be }
  end

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
vx-builder-0.2.2 spec/lib/builder/script_spec.rb
vx-builder-0.2.1 spec/lib/builder/script_spec.rb
vx-builder-0.2.0 spec/lib/builder/script_spec.rb
vx-builder-0.1.8 spec/lib/builder/script_spec.rb
vx-builder-0.1.7 spec/lib/builder/script_spec.rb
vx-builder-0.1.6 spec/lib/builder/script_spec.rb
vx-builder-0.1.5 spec/lib/builder/script_spec.rb
vx-builder-0.1.4 spec/lib/builder/script_spec.rb
vx-builder-0.1.3 spec/lib/builder/script_spec.rb
vx-builder-0.1.2 spec/lib/builder/script_spec.rb
vx-builder-0.1.1 spec/lib/builder/script_spec.rb
vx-builder-0.1.0 spec/lib/builder/script_spec.rb
vx-builder-0.0.29 spec/lib/builder/script_spec.rb
vx-builder-0.0.28 spec/lib/builder/script_spec.rb
vx-builder-0.0.27 spec/lib/builder/script_spec.rb
vx-builder-0.0.26 spec/lib/builder/script_spec.rb
vx-builder-0.0.25 spec/lib/builder/script_spec.rb
vx-builder-0.0.24 spec/lib/builder/script_spec.rb
vx-builder-0.0.23 spec/lib/builder/script_spec.rb
vx-builder-0.0.22 spec/lib/builder/script_spec.rb