Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated specs for doctrine drop tasks

  • Loading branch information...
commit b5aa7d06259a44c941e15b17b1aa739312ec79df 1 parent 478f639
solzenic authored
Showing with 5 additions and 2 deletions.
  1. +4 −2 spec/capifony_symfony2_doctrine_spec.rb
  2. +1 −0  spec/spec_helper.rb
View
6 spec/capifony_symfony2_doctrine_spec.rb
@@ -12,6 +12,8 @@
@configuration.set :try_sudo, ''
Capifony::Symfony2.load_into(@configuration)
+
+ @configuration.set :interactive_mode, false
end
subject { @configuration }
@@ -64,7 +66,7 @@
@configuration.find_and_execute_task('symfony:doctrine:database:drop')
end
- it { should have_run(' sh -c \'cd /var/www/releases/20120927 && php app/console doctrine:database:drop --env=prod\'') }
+ it { should have_run(' sh -c \'cd /var/www/releases/20120927 && php app/console doctrine:database:drop --force --env=prod\'') }
end
it "defines symfony:doctrine:schema tasks" do
@@ -86,7 +88,7 @@
@configuration.find_and_execute_task('symfony:doctrine:schema:drop')
end
- it { should have_run(' sh -c \'cd /var/www/releases/20120927 && php app/console doctrine:schema:drop --env=prod\'') }
+ it { should have_run(' sh -c \'cd /var/www/releases/20120927 && php app/console doctrine:schema:drop --force --env=prod\'') }
end
context "when running symfony:doctrine:schema:update" do
View
1  spec/spec_helper.rb
@@ -5,6 +5,7 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'capistrano-spec'
+require 'capistrano/cli'
require 'rspec'
require 'rspec/autorun'
Please sign in to comment.
Something went wrong with that request. Please try again.