spec/lib/builder/script/env_spec.rb in vx-builder-0.0.26 vs spec/lib/builder/script/env_spec.rb in vx-builder-0.0.27
- old
+ new
@@ -7,6 +7,16 @@
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