Permalink
Browse files

Use the abstractions we have. Bump up Cucumber timeout all around.

  • Loading branch information...
1 parent 52a9348 commit 81eb06c1da18e183528c6e339349d0119626cb77 @gabebw gabebw committed Jan 9, 2012
Showing with 2 additions and 7 deletions.
  1. +1 −5 features/support/env.rb
  2. +1 −2 lib/kumade/heroku.rb
View
6 features/support/env.rb
@@ -6,10 +6,6 @@
require 'aruba/cucumber'
require 'kumade'
-Before('@slow') do
+Before do
@aruba_timeout_seconds = 60
end
-
-After('@slow') do
- @aruba_timeout_seconds = Aruba::Api::DEFAULT_TIMEOUT_SECONDS
-end
View
3 lib/kumade/heroku.rb
@@ -22,8 +22,7 @@ def migrate_database
def restart_app
unless Kumade.configuration.pretending?
- command_line = CommandLine.new("bundle exec heroku restart --remote #{Kumade.configuration.environment}")
- command_line.run_or_error("Failed to restart #{Kumade.configuration.environment}")
+ heroku("restart")
end
Kumade.configuration.outputter.success("Restarted #{Kumade.configuration.environment}")
end

0 comments on commit 81eb06c

Please sign in to comment.