Comments (4)
Good catch and thorough examination, thanks!
Seems like we have to stick to Ruby 1.8 for Commands run from TextMate (see http://lists.macromates.com/textmate-dev/2014-August/014993.html – note that the ruby20
has not yet been implemented, as far as I can tell).
A backward compatible replacement for require_relative
would be require File.dirname(__FILE__) + "/foo.rb"
, I think.
Ccing @infininight.
from rspec.tmbundle.
Yeah, I saw that TextMate wasn't ready for Ruby2.0 yet as well, which is a bit of a bummer, but what can you do...
I actually tried a few different options, and I couldn't get any of them to work. Not sure if it's something to do with my setup though. Here's what I tried:-
require File.expand_path(File.dirname(__FILE__) + '/helpers')
# or
require File.expand_path(File.dirname(__FILE__) + '/helpers.rb')
# or
require File.dirname(__FILE__) + "/helpers"
# or
require File.dirname(__FILE__) + "/helpers.rb"
# or
$LOAD_PATH << File.dirname(__FILE__) # followed by...
require 'helpers'
from rspec.tmbundle.
All of these should have worked, I think. But you also need to add include Helpers
to make the method available. 😄
from rspec.tmbundle.
Oh haha, of course!
Kinda doesn't work without being included 😅
Thanks
from rspec.tmbundle.
Related Issues (20)
- Cannot run specs when cursor is inside string interpolation HOT 5
- Problems running with binding.pry HOT 5
- Rails Engine support HOT 9
- rvm_wrapper error after Sierra upgrade HOT 4
- Console HTML output is escaped HOT 5
- I might be the last person on earth using Textmate, but I'd like to run tests via command+R. HOT 11
- Symbol list contains `context` + `it` + a combination of both on top with nested describe blocks HOT 3
- Replace “Save example file and remember” with real “Run Again” command? HOT 2
- Maintainer transition HOT 8
- Remove support for RSpec 1? HOT 5
- Rename the repo to rspec.tmbundle HOT 9
- “Run examples in selected files/directories” seems broken HOT 3
- run_focussed does not work with rspec 3 because --line option does not exist HOT 2
- Release a new version! HOT 12
- Add gutter marks for failures HOT 3
- undefined method `join' for nil:NilClass in snippet_extractor.rb HOT 3
- Pry / byebug / web-console support? HOT 4
- Backtrace broken with latest RSpec HOT 1
- rspec-core 3.3.2 - broken when displaying a failed example HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspec.tmbundle.