Sha256: fd884b1050b29349c3e84876ff8ad9acf9437b1cc4e94a215f14b3683832d95f

Contents?: true

Size: 489 Bytes

Versions: 34

Compression:

Stored size: 489 Bytes

Contents

module Spec
  module Example
    module Pending
      def pending(message = "TODO")
        if block_given?
          begin
            yield
          rescue Exception
            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

34 entries across 34 versions & 11 rubygems

Version Path
rspec-instructure-1.3.3 lib/spec/example/pending.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/lib/spec/example/pending.rb
rspec-1.3.2 lib/spec/example/pending.rb
rspec-1.3.1 lib/spec/example/pending.rb
rspec-1.3.1.rc lib/spec/example/pending.rb
rspec-1.3.0 lib/spec/example/pending.rb
hubbub-0.0.11 lib/vendor/plugins/rspec/lib/spec/example/pending.rb
hubbub-0.0.10 lib/vendor/plugins/rspec/lib/spec/example/pending.rb
hubbub-0.0.9 lib/vendor/plugins/rspec/lib/spec/example/pending.rb
hubbub-0.0.8 lib/vendor/plugins/rspec/lib/spec/example/pending.rb
hubbub-0.0.6 lib/vendor/plugins/rspec/lib/spec/example/pending.rb
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/lib/spec/example/pending.rb
media-path-0.1.2 vendor/rspec/lib/spec/example/pending.rb
simple-templater-0.0.1.3 vendor/rspec/lib/spec/example/pending.rb
pupu-0.0.2.pre vendor/rspec/lib/spec/example/pending.rb
media-path-0.1.1.pre vendor/rspec/lib/spec/example/pending.rb
simple-templater-0.0.1.2 vendor/rspec/lib/spec/example/pending.rb
media-path-0.1.1 vendor/rspec/lib/spec/example/pending.rb
simple-templater-0.0.1.1 vendor/rspec/lib/spec/example/pending.rb
pupu-0.0.2 vendor/rspec/lib/spec/example/pending.rb