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
dchelimsky-rspec-1.1.10 lib/spec/example/pending.rb
dchelimsky-rspec-1.1.11.1 lib/spec/example/pending.rb
dchelimsky-rspec-1.1.11.2 lib/spec/example/pending.rb
dchelimsky-rspec-1.1.11.3 lib/spec/example/pending.rb
dchelimsky-rspec-1.1.11.4 lib/spec/example/pending.rb
dchelimsky-rspec-1.1.11.5 lib/spec/example/pending.rb
dchelimsky-rspec-1.1.11.6 lib/spec/example/pending.rb
dchelimsky-rspec-1.1.11.7 lib/spec/example/pending.rb
dchelimsky-rspec-1.1.11 lib/spec/example/pending.rb
dchelimsky-rspec-1.1.12 lib/spec/example/pending.rb
dchelimsky-rspec-1.1.99.1 lib/spec/example/pending.rb
dchelimsky-rspec-1.1.99.2 lib/spec/example/pending.rb
dchelimsky-rspec-1.1.99.3 lib/spec/example/pending.rb
dchelimsky-rspec-1.1.99.4 lib/spec/example/pending.rb
dchelimsky-rspec-1.1.99.5 lib/spec/example/pending.rb
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/lib/spec/example/pending.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/lib/spec/example/pending.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/lib/spec/example/pending.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/lib/spec/example/pending.rb
newbamboo-evented-rspec-1.1.12 lib/spec/example/pending.rb