Sha256: 07566ecc90a64ddd261f039eeeb4322df8aa97c46a4a637cbc19009490f53176

Contents?: true

Size: 786 Bytes

Versions: 17

Compression:

Stored size: 786 Bytes

Contents

require 'spec_helper'

describe Evrone::CI::Router::ScriptBuilder do
  let(:build)          { create :build }
  let(:travis)         { create :travis }
  let(:script_builder) { described_class.new build, travis }
  subject { script_builder }

  context "just created" do
    its(:travis) { should eq travis }
    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

17 entries across 17 versions & 1 rubygems

Version Path
evrone-ci-router-0.2.0.pre22 spec/lib/script_builder_spec.rb
evrone-ci-router-0.2.0.pre21 spec/lib/script_builder_spec.rb
evrone-ci-router-0.2.0.pre20 spec/lib/script_builder_spec.rb
evrone-ci-router-0.2.0.pre19 spec/lib/script_builder_spec.rb
evrone-ci-router-0.2.0.pre18 spec/lib/script_builder_spec.rb
evrone-ci-router-0.2.0.pre17 spec/lib/script_builder_spec.rb
evrone-ci-router-0.2.0.pre15 spec/lib/script_builder_spec.rb
evrone-ci-router-0.2.0.pre14 spec/lib/script_builder_spec.rb
evrone-ci-router-0.2.0.pre13 spec/lib/script_builder_spec.rb
evrone-ci-router-0.2.0.pre12 spec/lib/script_builder_spec.rb
evrone-ci-router-0.2.0.pre11 spec/lib/script_builder_spec.rb
evrone-ci-router-0.2.0.pre10 spec/lib/script_builder_spec.rb
evrone-ci-router-0.2.0.pre9 spec/lib/script_builder_spec.rb
evrone-ci-router-0.2.0.pre8 spec/lib/script_builder_spec.rb
evrone-ci-router-0.2.0.pre7 spec/lib/script_builder_spec.rb
evrone-ci-router-0.2.0.pre6 spec/lib/script_builder_spec.rb
evrone-ci-router-0.2.0.pre5 spec/lib/script_builder_spec.rb