Kero van Gelder wrote:
Hi!

I'm not sure this is how cucumber should behave.
Should I file one or three tickets at 
http://rspec.lighthouseapp.com/projects/16211-cucumber
?

Umm... add them separately.   I can take at least a couple of them...
-Ben
$ cucumber -v
0.1.12

$ mkdir fresh
$ cd fresh
$ cucumber
cucumber.yml was not found.  Please define your 'default' and other profiles in 
cucumber.yml.
Type 'cucumber --help' for usage.
$ touch cucumber.yml
$ cucumber       # bug! should not crash on broken config file
/var/lib/gems/1.8/gems/cucumber-0.1.12/bin/../lib/cucumber/cli.rb:146:in 
`parse_args_from_profile': undefined method `[]' for false:FalseClass 
(NoMethodError)
        from 
/var/lib/gems/1.8/gems/cucumber-0.1.12/bin/../lib/cucumber/cli.rb:47:in 
`parse_options!'
        from 
/var/lib/gems/1.8/gems/cucumber-0.1.12/bin/../lib/cucumber/cli.rb:20:in `parse'
        from 
/var/lib/gems/1.8/gems/cucumber-0.1.12/bin/../lib/cucumber/cli.rb:11:in 
`execute'
        from /var/lib/gems/1.8/gems/cucumber-0.1.12/bin/cucumber:6
        from /var/lib/gems/1.8/bin/cucumber:19:in `load'
        from /var/lib/gems/1.8/bin/cucumber:19
$ echo default: > cucumber.yml
$ cucumber       # bug! default profile defined but irretrievable
Could not find profile: 'default'

Defined profiles in cucumber.yml:
  * default
$ echo default: . > cucumber.yml
$ vim enlightenment.feature
$ cucumber -v    # bug! no reason not to use the default profile
Ruby files required:

Features:

$ cucumber -v -i -p default
Ruby files required:

Features:
  * ./enlightenment.feature

Story: enlightenment  # ./enlightenment.feature
As a Developer
I want to achieve enlightenment
So that I can be at peace with my code
  Scenario: meditation            # ./enlightenment.feature:6
    When I meditate indefinitely  # ./enlightenment.feature:7
    Then I achieve enlightenment  # ./enlightenment.feature:8

2 steps pending

$


__
How can I change the world if I can't even change myself?
  -- Faithless, Salva Mea
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to