summaryrefslogtreecommitdiffstats
path: root/test/lib/spec/runner/execution_context.rb
blob: 484c55830c013f3e31fd6e6350b3ce629e0900cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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