Browse files

Updated RSpec.sublime-build to only call rspec.bat if on Windows for …

…x-platform compatibility
  • Loading branch information...
1 parent 981e3cc commit 042517d30c9ca6ef933e512f4fd1d1d91634232a @barneywilliams barneywilliams committed Feb 21, 2012
Showing with 9 additions and 4 deletions.
  1. +9 −4 RSpec.sublime-build
View
13 RSpec.sublime-build
@@ -1,6 +1,11 @@
{
- "cmd": ["rspec", "$file"],
- "file_regex": "# ([A-Za-z0-9_./ ]+rb):([0-9]+)",
- "working_dir": "${folder}",
- "selector": "source.ruby"
+ "cmd": ["rspec", "-I ${file_path}", "$file"],
+ "file_regex": "# ([A-Za-z:0-9_./ ]+rb):([0-9]+)",
+ "working_dir": "${file_path}",
+ "selector": "source.ruby",
+
+ "windows":
+ {
+ "cmd": ["rspec.bat", "-I ${file_path}", "$file"]
+ }
}

0 comments on commit 042517d

Please sign in to comment.