class Minitest::Given::Framework
Framework
adapter for Minitest/Given
Public Instance Methods
count_assertion()
click to toggle source
# File lib/given/minitest/framework.rb 16 def count_assertion 17 example.assertions += 1 18 end
explicit_assertions?()
click to toggle source
# File lib/given/minitest/framework.rb 12 def explicit_assertions? 13 example.assertions > @starting_assertion_count 14 end
fail_with(*args)
click to toggle source
# File lib/given/minitest/framework.rb 20 def fail_with(*args) 21 raise Minitest::Assertion, args.join(" ") 22 end
pending_error()
click to toggle source
# File lib/given/minitest/framework.rb 24 def pending_error 25 Minitest::Skip 26 end
start_evaluation()
click to toggle source
# File lib/given/minitest/framework.rb 8 def start_evaluation 9 @starting_assertion_count = example.assertions 10 end
Private Instance Methods
example()
click to toggle source
# File lib/given/minitest/framework.rb 30 def example 31 Minitest::Spec.current 32 end