To answer my own question, I found the answer to my problems in a pull-request. If anyone has problems running cucumber please use > https://github.com/papercavalier/cucumber-tmbundle/blob/ee898901d3d499612390d22bd28d1a9d805ccdc7/Support/lib/cucumber/mate.rb

copy the contents of the about file to your mate.rb in the ~/Library/Appliation Support/TextMate/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate.rb

Mikael Henriksson

Tel: +46 (0) 730- 393 200 
mikael@zoolutions.se




On Mon, Jan 3, 2011 at 8:41 PM, Mikael Henriksson <mikael@zoolutions.se> wrote:
Ok, this is the command

#!/usr/bin/env sh
cat <<'RUBYEOF' > /tmp/cucumber-$$.rb

require ENV['TM_BUNDLE_SUPPORT'] + "/lib/cucumber/mate/feature_helper"
runner = Cucumber::Mate::Runner.new(STDOUT, ENV['TM_PROJECT_DIRECTORY'], ENV['TM_FILEPATH'], ENV['TM_CUCUMBER_BIN'], ENV['TM_CUCUMBER_OPTS'])

runner.run_feature

RUBYEOF

${TM_RUBY:-ruby} /tmp/cucumber-$$.rb; exit_status=$?; rm /tmp/cucumber-$$.rb; exit $exit_status

Trying to locate the bundle on my disk but I can\t find it. Going over to github right now. Can I change here somewhere or do I still need to modify the bundle? 


Mikael Henriksson

Tel: +46 (0) 730- 393 200 




On Mon, Jan 3, 2011 at 8:41 AM, Mikael Henriksson <mikael@zoolutions.se> wrote:
Actually I found the issue and it has nothing to do with Textmate though I wonder. I need to find the cmd+R command for the bundle and change it to run "bundle exec cucumber" instead of "cucumber"

Thanks Allan

Mikael Henriksson

Tel: +46 (0) 730- 393 200 




On Sun, Jan 2, 2011 at 7:50 PM, Allan Odgaard <mailinglist@textmate.org> wrote:
On 25 Dec 2010, at 18:53, Mikael Henriksson wrote:

> I try to run a feature with cmd+R and it gives me the following message:
>
> :29:in `require': no such file to load -- spec (LoadError) from :29:in
> `require' from /Users/mhenrixon/Library/Application
> Support/TextMate/Bundles/Cucumber.tmbundle/Support/lib/cucumber/mate.rb:23
> […]
> The RSpec specs work fine it's just my features that don't run. I hate
> having to switch to console to do this. Any suggestions?

I am not familiar with the Cucumber bundle, but from the error you quote it seems that it requires a file which is probably not present for the standard ruby.

You will have to dig into the source code for the bundle to learn more about which files it require.


_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate