spec/lib/dbcp/cli_spec.rb in dbcp-0.0.1 vs spec/lib/dbcp/cli_spec.rb in dbcp-0.1.0

- old
+ new

@@ -2,10 +2,11 @@ describe Dbcp::Cli do subject { Dbcp::Cli.new silent_stdout } let(:silent_stdout) { '/dev/null' } - before { Dir.chdir lib = File.expand_path('../../../fixtures', __FILE__) } + extend ExecuteInDirectory + execute_in_directory(File.expand_path('../../../fixtures', __FILE__)) describe "#start" do context "success" do let(:source) { double 'Dbcp::Environment', database: double(adapter: 'postgres'), environment_name: 'staging' } let(:destination) { double 'Dbcp::Environment', database: double(adapter: 'postgres'), environment_name: 'development' }