Skip to content

Instantly share code, notes, and snippets.

@nkryptic
Created January 27, 2009 22:20
Show Gist options
  • Save nkryptic/53606 to your computer and use it in GitHub Desktop.
Save nkryptic/53606 to your computer and use it in GitHub Desktop.
## NOTE
the error line indicates the second commented-out And line below, not the first
## account_activation.feature
Visitors may create an account, but for those who are not already in the
system an someone must activate the account for them before it can be used.
Feature: Activating an account
As a registered, but not yet activated, user
I want to be able to activate my account
So that I can log in to the site
Scenario: Not-yet-activated user can activate her account
Given a registered user named 'Reggie' # need to rewrite
# And the user has activation_code: 'activate_me', activated_at: nil!
# And we try hard to remember the user's updated_at, and created_at
# When she goes to /activate/activate_me
# Then she should be redirected to 'login'
# When she follows that redirect!
# Then she should see a notice message 'Signup complete!'
# And a user with login: 'reggie' should exist
# And the user should have login: 'reggie', and email: 'registered@example.com'
# And the user's activation_code should be nil
# And the user's activated_at should not be nil
# And she should not be logged in
## cucumber error
/home/sysadm/devbox/organizr/organizr/vendor/plugins/cucumber/bin/../lib/cucumber/parser/treetop_ext.rb:58:in `parse_or_fail': features/authentication/account_activation.feature:13:3: Parse error, expected one of (Cucumber::Parser::SyntaxError)
, @, Scenario:, Scenario Outline:.
from /home/sysadm/devbox/organizr/organizr/vendor/plugins/cucumber/bin/../lib/cucumber/parser/treetop_ext.rb:20:in `parse_file'
from /home/sysadm/devbox/organizr/organizr/vendor/plugins/cucumber/bin/../lib/cucumber/parser/treetop_ext.rb:25:in `open'
from /home/sysadm/devbox/organizr/organizr/vendor/plugins/cucumber/bin/../lib/cucumber/parser/treetop_ext.rb:25:in `parse_file'
from /home/sysadm/devbox/organizr/organizr/vendor/plugins/cucumber/bin/../lib/cucumber/cli/main.rb:299:in `load_plain_text_features'
from /home/sysadm/devbox/organizr/organizr/vendor/plugins/cucumber/bin/../lib/cucumber/cli/main.rb:298:in `each'
from /home/sysadm/devbox/organizr/organizr/vendor/plugins/cucumber/bin/../lib/cucumber/cli/main.rb:298:in `load_plain_text_features'
from /home/sysadm/devbox/organizr/organizr/vendor/plugins/cucumber/bin/../lib/cucumber/cli/main.rb:192:in `execute!'
from /home/sysadm/devbox/organizr/organizr/vendor/plugins/cucumber/bin/../lib/cucumber/cli/main.rb:21:in `execute'
from /home/sysadm/devbox/organizr/organizr/vendor/plugins/cucumber/bin/cucumber:6
rake aborted!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment