Permalink
Browse files

Fixed [#182 state:resolved] and release 0.1.99.17 (I goofed 0.1.99.16)

  • Loading branch information...
1 parent 24d399c commit e028934ecf3d62fa0c2424fac028909900d149a2 @aslakhellesoy aslakhellesoy committed Jan 30, 2009
View
@@ -139,6 +139,7 @@ examples/tickets/Rakefile
examples/tickets/cucumber.yml
examples/tickets/features/172.feature
examples/tickets/features/177-1.feature
+examples/tickets/features/177-2.feature
examples/tickets/features/180.feature
examples/tickets/features/lib/eatting_machine.rb
examples/tickets/features/lib/pantry.rb
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,21 @@
+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
@@ -1,6 +1,9 @@
module Cucumber
module Parser
# TIP: When you hack on the grammar, just delete feature.rb in this directory.
+ # Also make sure you have uninstalled all cucumber gems (don't forget xxx-cucumber
+ # github gems).
+ #
# Treetop will then generate the parser in-memory. When you're happy, just generate
# the rb file with tt feature.tt
module Feature
@@ -49,6 +52,7 @@ def background
def feature_elements
elements[7]
end
+
end
module Feature2
@@ -150,6 +154,15 @@ def _nt_feature
if r14
r16 = _nt_feature_elements
s0 << r16
+ if r16
+ r18 = _nt_comment
+ if r18
+ r17 = r18
+ else
+ r17 = SyntaxNode.new(input, index...index)
+ end
+ s0 << r17
+ end
end
end
end
@@ -1,14 +1,25 @@
module Cucumber
module Parser
# TIP: When you hack on the grammar, just delete feature.rb in this directory.
+ # Also make sure you have uninstalled all cucumber gems (don't forget xxx-cucumber
+ # github gems).
+ #
# Treetop will then generate the parser in-memory. When you're happy, just generate
# the rb file with tt feature.tt
grammar Feature
include I18n
include Table
rule feature
- white comment white tags white header:(!(scenario_outline / scenario / background) .)* background:(background)? feature_elements {
+ white
+ comment
+ white
+ tags
+ white
+ header:(!(scenario_outline / scenario / background) .)*
+ background:(background)?
+ feature_elements
+ comment? {
def build
if background.respond_to?(:build)
Ast::Feature.new(comment.build, tags.build, header.text_value, feature_elements.build, background.build)
@@ -1,5 +1,11 @@
module Cucumber
module Parser
+ # TIP: When you hack on the grammar, just delete feature.rb in this directory.
+ # Also make sure you have uninstalled all cucumber gems (don't forget xxx-cucumber
+ # github gems).
+ #
+ # Treetop will then generate the parser in-memory. When you're happy, just generate
+ # the rb file with tt feature.tt
module Table
include Treetop::Runtime
@@ -1,5 +1,11 @@
module Cucumber
module Parser
+ # TIP: When you hack on the grammar, just delete feature.rb in this directory.
+ # Also make sure you have uninstalled all cucumber gems (don't forget xxx-cucumber
+ # github gems).
+ #
+ # Treetop will then generate the parser in-memory. When you're happy, just generate
+ # the rb file with tt feature.tt
grammar Table
rule table
View
@@ -3,7 +3,7 @@ class VERSION #:nodoc:
MAJOR = 0
MINOR = 1
TINY = 99
- PATCH = 15 # Set to nil for official release
+ PATCH = 17 # Set to nil for official release
STRING = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
end

0 comments on commit e028934

Please sign in to comment.