view modules/stdlib/spec/monkey_patches/alias_should_to_must.rb @ 37:addb0ea390a1 puppet-3.6

Update Puppet "stdlib" module
author IBBoard <dev@ibboard.co.uk>
date Sat, 14 Mar 2015 20:09:45 +0000
parents 956e484adc12
children c42fb28cff86
line wrap: on
line source

#! /usr/bin/env ruby -S rspec
require 'rspec'

class Object
  # This is necessary because the RAL has a 'should'
  # method.
  alias :must :should
  alias :must_not :should_not
end