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