Sha256: b9a53fbe3e9b7bae4dfc98bae66eb817653e4efa008e67dcb18847e19218ac1e

Contents?: true

Size: 799 Bytes

Versions: 11

Compression:

Stored size: 799 Bytes

Contents

require 'spec_helper'

describe Vx::Router::ScriptBuilder do
  let(:build)          { create :build }
  let(:config)         { create :configuration }
  let(:script_builder) { described_class.new build, config }
  subject { script_builder }

  context "just created" do
    its(:configuration) { should eq config }
    its(:build)         { should eq build  }
  end

  context "to_before_script" do
    subject { script_builder.to_before_script }

    it { should_not be_empty }
  end

  context "to_script" do
    subject { script_builder.to_script }

    it { should_not be_empty }
  end

  context "to_after_script" do
    subject { script_builder.to_after_script }

    it { should_not be_empty }
  end

  def trace(s, cmd)
    s << "echo #{Shellwords.escape "$ " + cmd}"
    s << cmd
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vx-router-0.2.0.pre38 spec/lib/script_builder_spec.rb
vx-router-0.2.0.pre37 spec/lib/script_builder_spec.rb
vx-router-0.2.0.pre36 spec/lib/script_builder_spec.rb
vx-router-0.2.0.pre35 spec/lib/script_builder_spec.rb
vx-router-0.2.0.pre34 spec/lib/script_builder_spec.rb
vx-router-0.2.0.pre33 spec/lib/script_builder_spec.rb
vx-router-0.2.0.pre32 spec/lib/script_builder_spec.rb
vx-router-0.2.0.pre31 spec/lib/script_builder_spec.rb
vx-router-0.2.0.pre30 spec/lib/script_builder_spec.rb
vx-router-0.2.0.pre29 spec/lib/script_builder_spec.rb
vx-router-0.2.0.pre28 spec/lib/script_builder_spec.rb