![]() ![]() I am able to run the RSpec tests through the command line just fine. I built a Ruby on Rails app and I'm using RSpec to test the code. I recently purchased Textmate for my macbook pro. So I copied the PATH variable from my shell to the PATH variable in Textmate and then I was able to run cucumber features from within Textmate. So it turned out that the PATH variable in Textmate did not contain /usr/local/bin which is where my ruby executable is.Textmate will load and you can verify that the environment variables in Textmate match that of the shell. You can also close Textmate and type "mate" from a shell. Compare the PATH list in Textmate to that of executing the echo $PATH statement from a shell. Then run the shell script from within Textmate.Remove the PATH setting from Textmate, then open a new file in Textmate and paste in the following: You can test this pretty easily in Textmate. The environment variables available to processes launched by Finder are NOT THE SAME as environment variables available to processes launched from a shell. IMPORTANT: "TextMate inherits the value of PATH from Finder, which has only a few search locations specified, so for many users, it is necessary to augment this PATH if they need TextMate to find git, pdflatex, or similar commands not included with Mac OS X." It is important to understand that this is true only if you launch Textmate from Finder.There is a good article that explains how to determine the PATH Textmate is using here: and here: ![]() It turned out that the PATH that Textmate uses is different from the PATH set by finder (my system shell). Now to run the feature from within Textmate.You will notice that the cucumber keywords are syntax highlighted.I think the "old" cucumber-tmbundle included that file type. I noticed that there used to be a file type called "Cucumber plain text". Change the file type to "Cucumber steps". Read and follow the installation instructions on.This one is no longer maintained, don't use it. There are at least two forks of this project on github. Here is a list of the steps I took to get it to work. I had some difficulty running cucumber features directly in Textmate. ![]()
0 Comments
Leave a Reply. |