Sha256: ca55a87139920580352223b45bebd85d5214d85b3e422088154f068f9093f879

Contents?: true

Size: 470 Bytes

Versions: 76

Compression:

Stored size: 470 Bytes

Contents

require 'spec_helper'

describe Vx::Builder::ScriptBuilder::Env do
  let(:app)    { ->(_) { 0 } }
  let(:script) { described_class.new app }
  let(:env)    { create :env }
  let(:run)    { script.call env }
  subject { run }

  it { should eq 0 }

  context "run it" do
    let(:command) { create :command_from_env, env: env }
    before { run }

    it "should be success" do
      system( %{bash -l -c "#{command}" } )
      expect($?.to_i).to eq 0
    end
  end

end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
vx-builder-0.4.0 spec/lib/builder/script_builder/env_spec.rb
vx-builder-0.3.14 spec/lib/builder/script_builder/env_spec.rb
vx-builder-0.3.13 spec/lib/builder/script_builder/env_spec.rb
vx-builder-0.3.12 spec/lib/builder/script_builder/env_spec.rb
vx-builder-0.3.11 spec/lib/builder/script_builder/env_spec.rb
vx-builder-0.3.10 spec/lib/builder/script_builder/env_spec.rb
vx-builder-0.3.9 spec/lib/builder/script_builder/env_spec.rb
vx-builder-0.3.8 spec/lib/builder/script_builder/env_spec.rb
vx-builder-0.3.7 spec/lib/builder/script_builder/env_spec.rb
vx-builder-0.3.6 spec/lib/builder/script_builder/env_spec.rb
vx-builder-0.3.5 spec/lib/builder/script_builder/env_spec.rb
vx-builder-0.3.4 spec/lib/builder/script_builder/env_spec.rb
vx-builder-0.3.3 spec/lib/builder/script_builder/env_spec.rb
vx-builder-0.3.2 spec/lib/builder/script_builder/env_spec.rb
vx-builder-0.3.1 spec/lib/builder/script_builder/env_spec.rb
vx-builder-0.3.0 spec/lib/builder/script_builder/env_spec.rb