Class: RSpec::Given::Framework

Inherits:
Object
  • Object
show all
Defined in:
lib/given/rspec/framework.rb

Overview

Framework interface for RSpec/Given.

Constant Summary collapse

PendingError =
Class.new(StandardError)

Instance Method Summary collapse

Instance Method Details

#count_assertionObject



16
17
# File 'lib/given/rspec/framework.rb', line 16

def count_assertion
end

#explicit_assertions?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/given/rspec/framework.rb', line 12

def explicit_assertions?
  @matcher_called
end

#explicitly_assertedObject



19
20
21
# File 'lib/given/rspec/framework.rb', line 19

def explicitly_asserted
  @matcher_called = true
end

#fail_with(*args) ⇒ Object



23
24
25
# File 'lib/given/rspec/framework.rb', line 23

def fail_with(*args)
  ::RSpec::Expectations.fail_with(*args)
end

#pending_errorObject



29
30
31
# File 'lib/given/rspec/framework.rb', line 29

def pending_error
  RSpec::Core::Pending::PendingDeclaredInExample
end

#start_evaluationObject



8
9
10
# File 'lib/given/rspec/framework.rb', line 8

def start_evaluation
  @matcher_called = false
end