From ba23a5ac276e59fdda8186750c6d0fd2cfecdeac Mon Sep 17 00:00:00 2001 From: luke Date: Sat, 17 Mar 2007 02:48:41 +0000 Subject: 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 --- test/lib/spec/runner/execution_context.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/lib/spec/runner/execution_context.rb (limited to 'test/lib/spec/runner/execution_context.rb') 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 -- cgit