spec/paraduct/runner_spec.rb in paraduct-0.0.1.beta5 vs spec/paraduct/runner_spec.rb in paraduct-0.0.1.beta6

- old
+ new

@@ -67,37 +67,9 @@ let(:params) { { "ruby" => "1.9", "database" => "mysql" } } it { should eq Pathname("/tmp/jobs/RUBY_1.9_DATABASE_mysql") } end - describe "#copy_recursive" do - subject{ Paraduct::Runner.copy_recursive(source_dir, destination_dir) } - - include_context "uses temp dir" - - let(:source_dir) { temp_dir_path } - let(:destination_dir){ temp_dir_path.join("tmp/paraduct_workspace/RUBY_1.9_DATABASE_mysql") } - let(:copied_file) { destination_dir.join("build_success.sh") } - let(:not_copied_file){ destination_dir.join("tmp/paraduct_workspace/dummy.txt") } - - before do - # setup - FileUtils.cp_r(spec_dir.join("script/tmp/paraduct_workspace"), source_dir) - FileUtils.cp_r(spec_dir.join("script/build_success.sh"), source_dir) - - # exercise - subject - end - - # after do - # puts `tree #{source_dir}` - # end - - it { expect(destination_dir).to be_exist } - it { expect(copied_file).to be_exist } - it { expect(not_copied_file).not_to be_exist } - end - describe "#formatted_params" do subject{ runner.formatted_params } let(:params){ { "ruby" => "1.9", "database" => "mysql" } }