Module: Spec::Runner::ExecutionContext::InstanceMethods

Included in:
Spec::Runner::ExecutionContext
Defined in:
lib/spec/runner/execution_context.rb

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object

:nodoc:



5
6
7
# File 'lib/spec/runner/execution_context.rb', line 5

def initialize(*args) #:nodoc:
  #necessary for RSpec's own specs
end

#violated(message = "") ⇒ Object



9
10
11
# File 'lib/spec/runner/execution_context.rb', line 9

def violated(message="")
  raise Spec::Expectations::ExpectationNotMetError.new(message)
end