Adds basic tests for function has_ip_address
Implements has_ip_address predicate
Fixes typo in error handling
Checks for args != 1, instead of < 1
Adds more generic 'has_interface_with' function
reimplements has_ip_address w/has_interface_with and adds has_ip_network
(#13595) initialize_everything_for_tests couples modules Puppet ver

Replace regex used in spec_helper.rb to disallow both Puppet 2.6 and any
2.7 prior to 13.
Merge remote-tracking branch 'eshamow/tickets/bug/13595_restrict_initialize_everything_for_tests' into 2.2.x

* eshamow/tickets/bug/13595_restrict_initialize_everything_for_tests:
  (#13595) initialize_everything_for_tests couples modules Puppet ver
Revert "Merge remote-tracking branch 'eshamow/tickets/bug/13595_restrict_initialize_everything_for_tests' into 2.2.x"

This reverts commit 40da421c0480f940638d0db9aabf180500d6ae5c, reversing
changes made to 69465b0f3e0c0c5284812bfa76ab8d3c254d10a9.
Merge remote branch 'upstream/master'

* upstream/master:
  (#13439) Fix MRI 1.9 issue with spec_helper
  (#13439) Fix test failures with Puppet 2.6.x
  (#13439) refactor spec helper for compatibility with both puppet 2.7 and
  (#13494) Specify the behavior of zero padded strings
  Update CHANGELOG, Modulefile for 2.1.3
  (#13205) Rotate array/string randomley based on fqdn, fqdn_rotate()
Ceases blindly assuming that the 'interfaces' fact exists
Adds non-working rspec test for has_interface_with
Merge branch 'master' of github.com:wcooley/puppetlabs-stdlib

* 'master' of github.com:wcooley/puppetlabs-stdlib:
  (#13439) Fix MRI 1.9 issue with spec_helper
  (#13439) Fix test failures with Puppet 2.6.x
  (#13439) refactor spec helper for compatibility with both puppet 2.7 and master
  (#13494) Specify the behavior of zero padded strings
  Update CHANGELOG, Modulefile for 2.1.3
  (#13205) Rotate array/string randomley based on fqdn, fqdn_rotate()
Add has_interface_with() loopback specification for MacOSX and Linux

Without this patch the specification of how the has_interface_with()
function is not working and does not appear to have a good example of
how to proceed.  This is a problem because the function need to work
well on all platforms that Puppet and stdlib support.

This patch helps to fix the problem by providing an example of how to
mock lookupvar in a way that provides fact values for different
operating systems.

This also allows us to specify the behavior for Mac OS X and validate
the specification on a Linux host, and vice-versa.

The tests should look like:

rspec --format d spec/unit/puppet/parser/functions/has_interface_with_spec.rb

    function_has_interface_with
      On Mac OS X Systems
        should have loopback (lo0)
        should not have loopback (lo)
      On Linux Systems
        should have loopback (lo)
        should not have loopback (lo0)

    Finished in 0.04262 seconds
    4 examples, 0 failures
(#13693) moving logic from local spec_helper to puppetlabs_spec_helper

This should simplify future compatibility between various versions
of stdlib and various versions of puppet core.
Merge pull request #61 from cprice-puppet/ticket/master/13693-use-puppetlabs-spec-helper

(#13693) moving logic from local spec_helper to puppetlabs_spec_helper
Merge branch 'master' into has_interface_with_function

* master:
  (#13693) moving logic from local spec_helper to puppetlabs_spec_helper
Merge branch 'feature/master/has_interface_with' into has_interface_with_function

* feature/master/has_interface_with:
  Add has_interface_with() loopback specification for MacOSX and Linux
Adds a few more tests of the has_interface_with function
Merge branch '2.2.x' into 2.3.x

* 2.2.x:
  Revert "Merge remote-tracking branch 'eshamow/tickets/bug/13595_restrict_initialize_everything_for_tests' into 2.2.x"
  (#13595) initialize_everything_for_tests couples modules Puppet ver