Sha256: 96b620b83ae2f5a6e6711e13aa75fc5c0bb25a485916dc3f108ea9aebb301b73

Contents?: true

Size: 688 Bytes

Versions: 5

Compression:

Stored size: 688 Bytes

Contents

require 'spec_helper'

describe Vx::Builder::ScriptBuilder 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

5 entries across 5 versions & 1 rubygems

Version Path
vx-builder-0.3.4 spec/lib/builder/script_builder_spec.rb
vx-builder-0.3.3 spec/lib/builder/script_builder_spec.rb
vx-builder-0.3.2 spec/lib/builder/script_builder_spec.rb
vx-builder-0.3.1 spec/lib/builder/script_builder_spec.rb
vx-builder-0.3.0 spec/lib/builder/script_builder_spec.rb