Sha256: 232d283512a3e4843816435d5bc9988feed1cfdb0d2aca4949e7b5011982a205
Contents?: true
Size: 551 Bytes
Versions: 4
Compression:
Stored size: 551 Bytes
Contents
module RSpec module Core module Pending def pending(message = 'No reason given') running_example.metadata[:pending] = true running_example.metadata[:execution_result][:pending_message] = message if block_given? begin result = yield running_example.metadata[:pending] = false rescue Exception => e end raise RSpec::Core::PendingExampleFixedError.new if result end throw :pending_declared_in_example, message end end end end
Version data entries
4 entries across 4 versions & 1 rubygems