diff options
| author | Luke Kanies <luke@madstop.com> | 2008-08-25 21:31:37 -0700 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-08-26 22:40:42 -0700 |
| commit | 6e43c2d1179aed5ae92111afee1d3b868cf5f0a2 (patch) | |
| tree | 5f9e5b5b2ceb1abbea423d2bbd06595c96a89d2d | |
| parent | 8b45d13ab28837caf3bb09cc1c90ab61974bf4db (diff) | |
| download | puppet-6e43c2d1179aed5ae92111afee1d3b868cf5f0a2.tar.gz puppet-6e43c2d1179aed5ae92111afee1d3b868cf5f0a2.tar.xz puppet-6e43c2d1179aed5ae92111afee1d3b868cf5f0a2.zip | |
Aliasing RSpec's :should method to :must.
This allows us to still use the method in the RAL,
where 'should' is already taken.
Signed-off-by: Luke Kanies <luke@madstop.com>
| -rw-r--r-- | spec/spec_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 52aed5b62..41b5e7443 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -39,3 +39,9 @@ end # have to be correctly mocked. Puppet[:confdir] = "/dev/null" Puppet[:vardir] = "/dev/null" + +# We need this because the RAL uses 'should' as a method. This +# allows us the same behaviour but with a different method name. +class Object + alias :must :should +end |
