Forum: RSpec Cucumber and autospec do not work ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C6ce9a98479a04c47d143d444ae317c6?d=identicon&s=25 Kero van Gelder (Guest)
on 2008-12-06 01:04
(Received via mailing list)
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: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
C694a032be7518a0d704318895f8fe1d?d=identicon&s=25 Ben Mabey (mabes)
on 2008-12-06 01:15
(Received via mailing list)
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
C694a032be7518a0d704318895f8fe1d?d=identicon&s=25 Ben Mabey (mabes)
on 2008-12-06 04:42
(Received via mailing list)
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
> rspec-users@rubyforge.org
> 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-cucu...
http://rspec.lighthouseapp.com/projects/16211-cucu...
http://rspec.lighthouseapp.com/projects/16211-cucu...

-Ben
C6ce9a98479a04c47d143d444ae317c6?d=identicon&s=25 Kero van Gelder (Guest)
on 2008-12-06 12:14
(Received via mailing list)
> 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-cucu...
> 
http://rspec.lighthouseapp.com/projects/16211-cucu...
> 
http://rspec.lighthouseapp.com/projects/16211-cucu...

Thank you!

Comment added to 119

Bye,
Kero.
___
How can I change the world if I can't even change myself?
  -- Faithless, Salva Mea
This topic is locked and can not be replied to.