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