Sha256: 30e789f07c0f052a64fd3a0f6a0fc26075fd8ca19e76e0587d0c0b3ef0490992

Contents?: true

Size: 500 Bytes

Versions: 79

Compression:

Stored size: 500 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

79 entries across 79 versions & 12 rubygems

Version Path
radiant-0.6.6 vendor/plugins/rspec/lib/spec/example/pending.rb
radiant-0.6.7 vendor/plugins/rspec/lib/spec/example/pending.rb
radiant-0.6.9 vendor/plugins/rspec/lib/spec/example/pending.rb
radiant-0.6.8 vendor/plugins/rspec/lib/spec/example/pending.rb
rspec-0.0.10 lib/spec/example/pending.rb
rspec-1.1.0 lib/spec/example/pending.rb
rspec-1.1.1 lib/spec/example/pending.rb
rspec-1.1.10 lib/spec/example/pending.rb
rspec-1.1.2 lib/spec/example/pending.rb
rspec-1.1.7 lib/spec/example/pending.rb
rspec-1.1.6 lib/spec/example/pending.rb
rspec-1.1.4 lib/spec/example/pending.rb
rspec-1.1.3 lib/spec/example/pending.rb
rspec-1.1.12 lib/spec/example/pending.rb
rspec-1.1.11 lib/spec/example/pending.rb
rspec-1.1.5 lib/spec/example/pending.rb
rspec-1.1.8 lib/spec/example/pending.rb
rspec-1.1.9 lib/spec/example/pending.rb
spree-0.2.0 vendor/plugins/rspec/lib/spec/example/pending.rb
spree-0.4.0 vendor/plugins/rspec/lib/spec/example/pending.rb