Sha256: 695c4907f393e8cb995cfa1801d7f8dcc0ea86364b623ddfb9939d5564ea55f2

Contents?: true

Size: 463 Bytes

Versions: 15

Compression:

Stored size: 463 Bytes

Contents

require 'spec_helper'

describe Vx::Builder::Script::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

15 entries across 15 versions & 1 rubygems

Version Path
vx-builder-0.2.2 spec/lib/builder/script/env_spec.rb
vx-builder-0.2.1 spec/lib/builder/script/env_spec.rb
vx-builder-0.2.0 spec/lib/builder/script/env_spec.rb
vx-builder-0.1.8 spec/lib/builder/script/env_spec.rb
vx-builder-0.1.7 spec/lib/builder/script/env_spec.rb
vx-builder-0.1.6 spec/lib/builder/script/env_spec.rb
vx-builder-0.1.5 spec/lib/builder/script/env_spec.rb
vx-builder-0.1.4 spec/lib/builder/script/env_spec.rb
vx-builder-0.1.3 spec/lib/builder/script/env_spec.rb
vx-builder-0.1.2 spec/lib/builder/script/env_spec.rb
vx-builder-0.1.1 spec/lib/builder/script/env_spec.rb
vx-builder-0.1.0 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.29 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.28 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.27 spec/lib/builder/script/env_spec.rb