Cucumber and autospec do not work?


#1

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
?

$ 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:inparse’
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:inload’
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


#2

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


#3

Kero van Gelder wrote:

$ cd fresh
from /var/lib/gems/1.8/bin/cucumber:19:in `load’
Ruby files required:
As a Developer

__
How can I change the world if I can’t even change myself?
– Faithless, Salva Mea


rspec-users mailing list
removed_email_address@domain.invalid
http://rubyforge.org/mailman/listinfo/rspec-users

Hey Kero,
I have added th tickets for you and am working on fixes for them.
Although, I think the last one needs to be discussed more so please add
your thoughts to that ticket.

http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/117-cli-crashes-with-blank-cucumberyml
http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/118-confusing-error-message-with-blank-default-profile-defined
http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/119-not-using-default-profile-when-expected

-Ben


#4

I have added th tickets for you and am working on fixes for them.
Although, I think the last one needs to be discussed more so please add
your thoughts to that ticket.

http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/117-cli-crashes-with-blank-cucumberyml
http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/118-confusing-error-message-with-blank-default-profile-defined
http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/119-not-using-default-profile-when-expected

Thank you!

Comment added to 119

Bye,
Kero.


How can I change the world if I can’t even change myself?
– Faithless, Salva Mea