Sha256: c02fcf753af343baed874ca2ef72b6ba8d4fa8e3f42bed112320b13aca759c6d
Contents?: true
Size: 494 Bytes
Versions: 3
Compression:
Stored size: 494 Bytes
Contents
module Spec module Example module Pending def pending(message = "TODO") if block_given? begin yield rescue Exception => e raise Spec::Example::ExamplePendingError.new(message) end raise Spec::Example::PendingExampleFixedError.new("Expected pending '#{message}' to fail. No Error was raised.") else raise Spec::Example::ExamplePendingError.new(message) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems