summaryrefslogtreecommitdiffstats
path: root/test/lib/spec/runner/execution_context.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-17 02:48:41 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-17 02:48:41 +0000
commitba23a5ac276e59fdda8186750c6d0fd2cfecdeac (patch)
tree1e14b25ade74ea52d8da2788ede9b12b507867e8 /test/lib/spec/runner/execution_context.rb
parent8ea6adaeb1e3d0aa6348c2a2c3a385d185372d06 (diff)
Adding spec libs, so we can use them some day
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2283 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/lib/spec/runner/execution_context.rb')
-rw-r--r--test/lib/spec/runner/execution_context.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/lib/spec/runner/execution_context.rb b/test/lib/spec/runner/execution_context.rb
new file mode 100644
index 000000000..484c55830
--- /dev/null
+++ b/test/lib/spec/runner/execution_context.rb
@@ -0,0 +1,17 @@
+module Spec
+ module Runner
+ class ExecutionContext
+ module InstanceMethods
+ def initialize(*args) #:nodoc:
+ #necessary for RSpec's own specs
+ end
+
+ def violated(message="")
+ raise Spec::Expectations::ExpectationNotMetError.new(message)
+ end
+
+ end
+ include InstanceMethods
+ end
+ end
+end \ No newline at end of file