dchelimsky / rspec-tmbundle

Textmate bundle for RSpec.

This URL has Read+Write access

rspec-tmbundle / Commands / Run Specifications - Normal.tmCommand
100644 33 lines (29 sloc) 0.946 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>command</key>
<string>#!/usr/bin/env sh
cat &lt;&lt;'RUBYEOF' &gt; /tmp/textmate-command-$$.rb
 
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate"
Spec::Mate::Runner.new.run_file STDOUT
 
RUBYEOF
 
${TM_RUBY:-ruby} /tmp/textmate-command-$$.rb; exit_status=$?; rm /tmp/textmate-command-$$.rb; exit $exit_status</string>
<key>fallbackInput</key>
<string>document</string>
<key>input</key>
<string>document</string>
<key>keyEquivalent</key>
<string>@r</string>
<key>name</key>
<string>Run Examples</string>
<key>output</key>
<string>showAsHTML</string>
<key>scope</key>
<string>source.ruby.rspec</string>
<key>uuid</key>
<string>B5906021-8E54-4863-A13B-EA46333DB5F1</string>
</dict>
</plist>