radar / guides

Guides for Ruby and Elixir and whatever else I feel like
1.52k stars 165 forks source link

Gem development: Cucumber not running executable in bin #24

Open entrity opened 12 years ago

entrity commented 12 years ago

In regards to gem-development tutorial, under Testing a command line interface (https://github.com/radar/guides/blob/master/gem-development.md#testing-a-command-line-interface):

I suppose it's my error, not the tutorial's, but perhaps you can help me in either case:

When I call bundle exec cucumber features/, I don't get an error reading 'pending', nor any yellow output. Rather, the task appears to run to completion, terminating with:

2 scenarios (2 failed)
4 steps (2 failed, 2 skipped)

I went ahead and created bin/foodie anyway, but it doesn't get run. (No print "nothing" executed.)

I'm using Windows7. I've tried this in the default shell as well as using msys. Is that my problem?

RaphaelDeLaGhetto commented 8 years ago

Well, I'm about 4 years too late to the game, but I just ran into the same problem on Ubuntu 14.04. My issue was spaces in my executable path. I removed the spaces from my directory name and the problem was solved.

Oh yeah, and the guide says to put the foodie* executable in the exe directory. I put mine bin.