Sha256: 1d0d1dcf14ef9e3e777243446c944936403c1a4bb8f6668a23d38d1e8d156ad8
Contents?: true
Size: 814 Bytes
Versions: 23
Compression:
Stored size: 814 Bytes
Contents
require 'spec_helper' describe Vx::Builder::Script::Ruby do let(:app) { ->(env) { env } } let(:script) { described_class.new app } let(:env) { create :env } let(:run) { script.call env } subject { run } it { should eq env } context "run it" do let(:command) { create :command_from_env, env: env } subject { env } context "should be success" do before { run } its(:before_install) { should_not be_empty } its(:announce) { should_not be_empty } its(:install) { should_not be_empty } its(:cached_directories) { should eq %w{ ~/.rubygems } } end context "when script is empty" do before do env.source.script.clear run end its(:script) { should_not be_empty } end end end
Version data entries
23 entries across 23 versions & 1 rubygems