Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

Commit

Permalink
Fixed the name of the capistrano task in the test to be correct. Upda…
Browse files Browse the repository at this point in the history
…ted the cucumber feature to look for the right task name.
  • Loading branch information
David Czarnecki authored and Harold Giménez committed Sep 11, 2011
1 parent 5758fc5 commit 21f66be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions features/rails.feature
Expand Up @@ -67,7 +67,7 @@ Feature: Install the Gem in a Rails application
And I configure my application to require the "airbrake" gem
And I run the airbrake generator with "-k myapikey"
And I run "cap -T"
Then I should see "deploy:notify_airbrake"
Then I should see "airbrake:notify"

Scenario: Configure and deploy using only vendored gem
When I generate a new Rails application
Expand All @@ -79,7 +79,7 @@ Feature: Install the Gem in a Rails application
And I uninstall the "airbrake" gem
And I install cached gems
And I run "cap -T"
Then I should see "deploy:notify_airbrake"
Then I should see "airbrake:notify"

Scenario: Try to install when the airbrake plugin still exists
When I generate a new Rails application
Expand Down
4 changes: 2 additions & 2 deletions test/capistrano_test.rb
Expand Up @@ -13,11 +13,11 @@ def setup
@configuration.dry_run = true
end

should "define deploy:notify_airbrake task" do
should "define airbrake:notify task" do
assert_not_nil @configuration.find_task('airbrake:notify')
end

should "log when calling deploy:notify_airbrake task" do
should "log when calling airbrake:notify task" do
@configuration.set(:current_revision, '084505b1c0e0bcf1526e673bb6ac99fbcb18aecc')
@configuration.set(:repository, 'repository')
io = StringIO.new
Expand Down

0 comments on commit 21f66be

Please sign in to comment.