summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/parser/functions/capitalize_spec.rb
diff options
context:
space:
mode:
authorJeff McCune <jeff@puppetlabs.com>2012-07-19 15:27:52 -0700
committerJeff McCune <jeff@puppetlabs.com>2012-07-19 15:41:41 -0700
commitf604bae98cb377b6fc55185d4eeae05d1c7876d2 (patch)
tree237e3c9771232862ecf8c596d7555f366ac05fbe /spec/unit/puppet/parser/functions/capitalize_spec.rb
parent7d3433345e5c4a35b340f628cd7d7015aadfa9a4 (diff)
(Maint) Fix interpreter lines
This time around I actually know why I'm doing this thanks to the reminder from Nick Lewis. Ruby will replace itself in memory with the executable listed in the interpreter line if the string "ruby" is not in there. Since /usr/bin/env rspec doesn't contain the substring "ruby", you can't actually run ruby -W1 or whatever on the file. This patch fixes the problem by making sure "ruby" is present, preventing ruby from replacing itself in memory.
Diffstat (limited to 'spec/unit/puppet/parser/functions/capitalize_spec.rb')
-rwxr-xr-xspec/unit/puppet/parser/functions/capitalize_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/puppet/parser/functions/capitalize_spec.rb b/spec/unit/puppet/parser/functions/capitalize_spec.rb
index 1c45821..a173f2f 100755
--- a/spec/unit/puppet/parser/functions/capitalize_spec.rb
+++ b/spec/unit/puppet/parser/functions/capitalize_spec.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env rspec
+#! /usr/bin/env ruby -S rspec
require 'spec_helper'
describe "the capitalize function" do