On Mon, Apr 27, 2009 at 8:13 AM, Rick DeNatale [email protected]
wrote:
seems to be the most evolved.
$ /Users/rick/mastermind/features/codebreaker_starts_game.feature --format=html
-bash: /Users/rick/mastermind/features/codebreaker_starts_game.feature:
Permission denied
It’s trying to run the feature as an executable directly it’s not
running the cucumber executable!
Why it be doin dat?
Actually, I was misreading the output in the run window, which was
wrapping.
$ cucumber
/Users/rick/mastermind/features/codebreaker_starts_game.feature
–format=html false
/Users/rick/.gem/ruby/1.8/gems/cucumber-0.3.1/bin/…/lib/cucumber/step_mother.rb:125:in
`Given’: Multiple step definitions have the same Regexp:
(Cucumber::Redundant)
features/step_definitions/mastermind.rb:13:in /^I am not yet playing$/' features/step_definitions/mastermind.rb:13:in
/^I am not yet playing$/’
from
/Users/rick/.gem/ruby/1.8/gems/cucumber-0.3.1/bin/…/lib/cucumber/step_mother.rb:124:in
each' from /Users/rick/.gem/ruby/1.8/gems/cucumber-0.3.1/bin/../lib/cucumber/step_mother.rb:124:in
Given’
from ./features/step_definitions/mastermind.rb:13
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
polyglot_original_require’
from
/opt/local/lib/ruby/gems/1.8/gems/polyglot-0.2.5/lib/polyglot.rb:54:in
require' from /Users/rick/.gem/ruby/1.8/gems/cucumber-0.3.1/bin/../lib/cucumber/cli/main.rb:79:in
require_files’
from
/Users/rick/.gem/ruby/1.8/gems/cucumber-0.3.1/bin/…/lib/cucumber/cli/main.rb:77:in
each' from /Users/rick/.gem/ruby/1.8/gems/cucumber-0.3.1/bin/../lib/cucumber/cli/main.rb:77:in
require_files’
from
/Users/rick/.gem/ruby/1.8/gems/cucumber-0.3.1/bin/…/lib/cucumber/cli/main.rb:34:in
execute!' from /Users/rick/.gem/ruby/1.8/gems/cucumber-0.3.1/bin/../lib/cucumber/cli/main.rb:20:in
execute’
from /Users/rick/.gem/ruby/1.8/gems/cucumber-0.3.1/bin/cucumber:6
from /opt/local/bin/cucumber:19:in `load’
from /opt/local/bin/cucumber:19
If I do this from the project directory:
$ cucumber features/codebreaker_starts_game.feature
Feature: Codebreaker starts game
As a Codebreaker
I want to start a game
So that I can break the code
Scenario: Start game #
features/codebreaker_starts_game.feature:5
Given I am not yet playing #
features/step_definitions/mastermind.rb:13
When I start a new game #
features/step_definitions/mastermind.rb:24
Then the game should say “Welcome to Mastermind!” #
features/step_definitions/mastermind.rb:28
And the game should say “Enter guess:” #
features/step_definitions/mastermind.rb:28
1 scenario
4 passed steps
Running under textmate, cucumber seems to be somehow convincing itself
that
features/step_definitions/mastermind.rb:13:in `/^I am not yet playing$/’
Duplicates itself?!?
–
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale