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
newbamboo-rspec-1.1.12 lib/spec/example/pending.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/pending.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/pending.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/pending.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/pending.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/pending.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/pending.rb
mack-0.8.2 lib/gems/rspec-1.1.11/lib/spec/example/pending.rb
mack-0.8.3 lib/gems/rspec-1.1.12/lib/spec/example/pending.rb
mack-0.8.3.1 lib/gems/rspec-1.1.12/lib/spec/example/pending.rb
picolena-0.0.99 app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/example/pending.rb
picolena-0.1.1 rails_plugins/rspec/lib/spec/example/pending.rb
picolena-0.1.0 rails_plugins/rspec/lib/spec/example/pending.rb
picolena-0.1.3 rails_plugins/rspec/lib/spec/example/pending.rb
picolena-0.1.4 rails_plugins/rspec/lib/spec/example/pending.rb
picolena-0.1.2 rails_plugins/rspec/lib/spec/example/pending.rb
picolena-0.1.5 rails_plugins/rspec/lib/spec/example/pending.rb
pictrails-0.5.0 vendor/plugins/rspec/lib/spec/example/pending.rb
radiant-0.6.5.1 vendor/plugins/rspec/lib/spec/example/pending.rb
radiant-0.6.5 vendor/plugins/rspec/lib/spec/example/pending.rb