summaryrefslogtreecommitdiffstats
path: root/test/lib/spec/extensions
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-08-23 00:56:42 -0500
committerLuke Kanies <luke@madstop.com>2007-08-23 00:56:42 -0500
commit5601ecf75d3854a66d087a108e1b06885fa2be12 (patch)
tree28d5892bab14c9296bcd4232075f3658ee1224a0 /test/lib/spec/extensions
parent7c4d39ec09c10871d7eb234fe4392381245ff443 (diff)
downloadpuppet-5601ecf75d3854a66d087a108e1b06885fa2be12.tar.gz
puppet-5601ecf75d3854a66d087a108e1b06885fa2be12.tar.xz
puppet-5601ecf75d3854a66d087a108e1b06885fa2be12.zip
Upgrading rspec to version 1.0.8. This only includes the contents of the lib directory, and even then only the spec-related stuff, not the autotest stuff.
Diffstat (limited to 'test/lib/spec/extensions')
-rwxr-xr-xtest/lib/spec/extensions/object.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lib/spec/extensions/object.rb b/test/lib/spec/extensions/object.rb
new file mode 100755
index 000000000..6218aa770
--- /dev/null
+++ b/test/lib/spec/extensions/object.rb
@@ -0,0 +1,6 @@
+class Object
+ def args_and_options(*args)
+ options = Hash === args.last ? args.pop : {}
+ return args, options
+ end
+end