Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
update specs for new taps option
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed May 6, 2010
1 parent 02c64af commit a682d24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/commands/db_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,31 @@ module Heroku::Command

it "pull database" do
@db.stub!(:args).and_return(['postgres://postgres@localhost/db'])
opts = { :database_url => 'postgres://postgres@localhost/db', :default_chunksize => 1000 }
opts = { :database_url => 'postgres://postgres@localhost/db', :default_chunksize => 1000, :indexes_first => true }
@db.should_receive(:taps_client).with(:pull, opts)
@db.should_receive(:confirm).and_return(true)
@db.pull
end

it "push database" do
@db.stub!(:args).and_return(['postgres://postgres@localhost/db'])
opts = { :database_url => 'postgres://postgres@localhost/db', :default_chunksize => 1000 }
opts = { :database_url => 'postgres://postgres@localhost/db', :default_chunksize => 1000, :indexes_first => true }
@db.should_receive(:taps_client).with(:push, opts)
@db.should_receive(:confirm).and_return(true)
@db.push
end

it "does not confirm a pull when --force is specified" do
@db.stub!(:args).and_return(['postgres://postgres@localhost/db', '--force'])
opts = { :database_url => 'postgres://postgres@localhost/db', :default_chunksize => 1000 }
opts = { :database_url => 'postgres://postgres@localhost/db', :default_chunksize => 1000, :indexes_first => true }
@db.should_receive(:taps_client).with(:pull, opts)
@db.should_not_receive(:confirm)
@db.pull
end

it "does not confirm a push when --force is specified" do
@db.stub!(:args).and_return(['postgres://postgres@localhost/db', '--force'])
opts = { :database_url => 'postgres://postgres@localhost/db', :default_chunksize => 1000 }
opts = { :database_url => 'postgres://postgres@localhost/db', :default_chunksize => 1000, :indexes_first => true }
@db.should_receive(:taps_client).with(:push, opts)
@db.should_not_receive(:confirm)
@db.push
Expand Down

0 comments on commit a682d24

Please sign in to comment.