Sha256: 4fb87908335354081542330049583c5dc9e3510ec10588f4aeebe950342831bd

Contents?: true

Size: 443 Bytes

Versions: 20

Compression:

Stored size: 443 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( command )
      expect($?.to_i).to eq 0
    end
  end

end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
vx-builder-0.0.25 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.24 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.23 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.22 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.21 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.20 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.19 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.18 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.16 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.15 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.14 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.13 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.12 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.11 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.10 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.9 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.8 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.7 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.6 spec/lib/builder/script/env_spec.rb
vx-builder-0.0.5 spec/lib/builder/script/env_spec.rb