diff --git a/Commands/Alternate File.tmCommand b/Commands/Alternate File.tmCommand index 0ebcd3303..284cba07b 100644 --- a/Commands/Alternate File.tmCommand +++ b/Commands/Alternate File.tmCommand @@ -5,7 +5,8 @@ beforeRunningCommand nop command - cat <<'RUBYEOF' > /tmp/textmate-command-$$.rb + #!/usr/bin/env sh +cat <<'RUBYEOF' > /tmp/textmate-command-$$.rb require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate/switch_command" Spec::Mate::SwitchCommand.new.go_to_twin(ENV['TM_PROJECT_DIRECTORY'], ENV['TM_FILEPATH']) diff --git a/Commands/Run Focussed Specification.tmCommand b/Commands/Run Focussed Specification.tmCommand index ca7b5ed08..f0d68dc4d 100644 --- a/Commands/Run Focussed Specification.tmCommand +++ b/Commands/Run Focussed Specification.tmCommand @@ -5,7 +5,8 @@ beforeRunningCommand saveActiveFile command - cat <<'RUBYEOF' > /tmp/textmate-command-$$.rb + #!/usr/bin/env sh +cat <<'RUBYEOF' > /tmp/textmate-command-$$.rb require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate" Spec::Mate::Runner.new.run_focussed STDOUT diff --git a/Commands/Run Specifications - Normal.tmCommand b/Commands/Run Specifications - Normal.tmCommand index 0ed0fe83c..ac47d2943 100644 --- a/Commands/Run Specifications - Normal.tmCommand +++ b/Commands/Run Specifications - Normal.tmCommand @@ -5,7 +5,8 @@ beforeRunningCommand saveActiveFile command - cat <<'RUBYEOF' > /tmp/textmate-command-$$.rb + #!/usr/bin/env sh +cat <<'RUBYEOF' > /tmp/textmate-command-$$.rb require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate" Spec::Mate::Runner.new.run_file STDOUT diff --git a/Commands/Run Specifications in selected files or directories.tmCommand b/Commands/Run Specifications in selected files or directories.tmCommand index a1a3f5356..911de4cc4 100644 --- a/Commands/Run Specifications in selected files or directories.tmCommand +++ b/Commands/Run Specifications in selected files or directories.tmCommand @@ -5,7 +5,8 @@ beforeRunningCommand saveModifiedFiles command - cat <<'RUBYEOF' > /tmp/textmate-command-$$.rb + #!/usr/bin/env sh +cat <<'RUBYEOF' > /tmp/textmate-command-$$.rb require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate" Spec::Mate::Runner.new.run_files STDOUT