Skip to content

Commit

Permalink
Add the missing shebangs and fix the wrong ones for rpmlint to stop c…
Browse files Browse the repository at this point in the history
…omplaining loudly
  • Loading branch information
averi committed May 7, 2014
1 parent e962b95 commit 09f8920
Show file tree
Hide file tree
Showing 85 changed files with 85 additions and 3 deletions.
1 change: 1 addition & 0 deletions spec/acceptance/abs_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'abs function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/any2array_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'any2array function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/base64_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'base64 function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/bool2num_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'bool2num function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/capitalize_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'capitalize function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/chomp_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'chomp function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/chop_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'chop function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/concat_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'concat function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/count_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'count function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/deep_merge_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'deep_merge function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/defined_with_params_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'defined_with_params function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/delete_at_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'delete_at function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/delete_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'delete function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/delete_undef_values_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'delete_undef_values function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/num2bool_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'num2bool function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/parsejson_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'parsejson function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/parseyaml_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'parseyaml function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/pick_default_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'pick_default function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/pick_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'pick function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/prefix_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'prefix function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/range_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'range function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/reject_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'reject function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/reverse_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'reverse function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/rstrip_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'rstrip function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/shuffle_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'shuffle function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/size_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'size function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/sort_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'sort function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/squeeze_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'squeeze function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/str2bool_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'str2bool function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/str2saltedsha512_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'str2saltedsha512 function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/strftime_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'strftime function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/strip_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'strip function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/suffix_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'suffix function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/swapcase_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'swapcase function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/time_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'time function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/to_bytes_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'to_bytes function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/type_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'type function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/union_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'union function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/unique_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'unique function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/unsupported_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'unsupported distributions and OSes', :if => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/upcase_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'upcase function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/uriescape_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'uriescape function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/validate_absolute_path_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'validate_absolute_path function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/validate_array_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'validate_array function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/validate_augeas_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'validate_augeas function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/validate_bool_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'validate_bool function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/validate_cmd_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'validate_cmd function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/validate_hash_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'validate_hash function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/validate_ipv4_address_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'validate_ipv4_address function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/validate_ipv6_address_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'validate_ipv6_address function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/validate_re_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'validate_re function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/validate_slength_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'validate_slength function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/validate_string_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'validate_string function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/values_at_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'values_at function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/values_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'

describe 'values function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
Expand Down
1 change: 1 addition & 0 deletions spec/acceptance/zip_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'
require 'puppet'

Expand Down
1 change: 1 addition & 0 deletions spec/classes/anchor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper'
require 'puppet_spec/compiler'

Expand Down
1 change: 1 addition & 0 deletions spec/functions/ensure_resource_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper'
require 'rspec-puppet'
require 'puppet_spec/compiler'
Expand Down
1 change: 1 addition & 0 deletions spec/functions/getparam_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper'
require 'rspec-puppet'
require 'puppet_spec/compiler'
Expand Down
1 change: 1 addition & 0 deletions spec/lib/puppet_spec/compiler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
module PuppetSpec::Compiler
def compile_to_catalog(string, node = Puppet::Node.new('foonode'))
Puppet[:code] = string
Expand Down
1 change: 1 addition & 0 deletions spec/lib/puppet_spec/database.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
# This just makes some nice things available at global scope, and for setup of
# tests to use a real fake database, rather than a fake stubs-that-don't-work
# version of the same. Fun times.
Expand Down
1 change: 1 addition & 0 deletions spec/lib/puppet_spec/files.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'fileutils'
require 'tempfile'
require 'tmpdir'
Expand Down
1 change: 1 addition & 0 deletions spec/lib/puppet_spec/fixtures.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
module PuppetSpec::Fixtures
def fixtures(*rest)
File.join(PuppetSpec::FIXTURE_DIR, *rest)
Expand Down
1 change: 1 addition & 0 deletions spec/lib/puppet_spec/matchers.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'stringio'

########################################################################
Expand Down
1 change: 1 addition & 0 deletions spec/lib/puppet_spec/modules.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
module PuppetSpec::Modules
class << self
def create(name, dir, options = {})
Expand Down
1 change: 1 addition & 0 deletions spec/lib/puppet_spec/pops.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
module PuppetSpec::Pops
extend RSpec::Matchers::DSL

Expand Down
1 change: 1 addition & 0 deletions spec/lib/puppet_spec/scope.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec

module PuppetSpec::Scope
# Initialize a new scope suitable for testing.
Expand Down
1 change: 1 addition & 0 deletions spec/lib/puppet_spec/settings.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
module PuppetSpec::Settings

# It would probably be preferable to refactor defaults.rb such that the real definitions of
Expand Down
1 change: 1 addition & 0 deletions spec/lib/puppet_spec/verbose.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
# Support code for running stuff with warnings disabled.
module Kernel
def with_verbose_disabled
Expand Down
1 change: 1 addition & 0 deletions spec/monkey_patches/alias_should_to_must.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'rspec'

class Object
Expand Down
1 change: 1 addition & 0 deletions spec/monkey_patches/publicize_methods.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
# Some monkey-patching to allow us to test private methods.
class Class
def publicize_methods(*methods)
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
dir = File.expand_path(File.dirname(__FILE__))
$LOAD_PATH.unshift File.join(dir, 'lib')

Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'beaker-rspec'

UNSUPPORTED_PLATFORMS = []
Expand Down
1 change: 1 addition & 0 deletions spec/unit/facter/facter_dot_d_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper'
require 'facter/facter_dot_d'

Expand Down
1 change: 1 addition & 0 deletions spec/unit/facter/root_home_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper'
require 'facter/root_home'

Expand Down
1 change: 1 addition & 0 deletions spec/unit/facter/util/puppet_settings_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper'
require 'facter/util/puppet_settings'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper'

describe Puppet::Parser::Functions.function(:validate_absolute_path) do
Expand Down
1 change: 1 addition & 0 deletions spec/unit/puppet/parser/functions/validate_augeas_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /usr/bin/env ruby -S rspec
require 'spec_helper'

describe Puppet::Parser::Functions.function(:validate_augeas), :if => Puppet.features.augeas? do
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/puppet/parser/functions/validate_bool_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env/ruby -S rspec
#! /usr/bin/env ruby -S rspec

require 'spec_helper'

Expand Down
Loading

0 comments on commit 09f8920

Please sign in to comment.