spec/lib/builder/script_builder/ruby_spec.rb in vx-builder-0.3.10 vs spec/lib/builder/script_builder/ruby_spec.rb in vx-builder-0.3.11

- old
+ new

@@ -12,14 +12,18 @@ context "run it" do let(:command) { create :command_from_env, env: env } subject { env } context "should be success" do - before { run } + before do + stub(env.source).install { [] } + run + end + 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 } } + its(:cached_directories) { should eq %w{ ~/.rubygems } } end context "when script is empty" do before do env.source.script.clear