Sha256: 0bcf83a90ddf0d106ec4560066323eb2a190de00821fbe37773f39e74613065a

Contents?: true

Size: 648 Bytes

Versions: 25

Compression:

Stored size: 648 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib', 'rspec', 'instafail'))

describe 'x' do
  it 'fails logically' do
    1.should == 2
  end

  it 'b' do
  end

  it 'c' do
  end

  it 'pends' do
    pending
    raise
  end

  it 'raises a simple error' do
    raise 'shallow failure'
  end

  it 'raises a hidden error' do
    error = ExceptionWrappingException.new('There is an error in this error.')
    error.original_exception = RuntimeError.new('There is no error in this error.')
    raise error
  end

  it 'e' do
  end
end

class ExceptionWrappingException < RuntimeError
  attr_accessor :original_exception
end

Version data entries

25 entries across 17 versions & 3 rubygems

Version Path
rspec-instafail-0.2.5 spec/rspec_1/a_test.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rspec-instafail-0.2.4/spec/rspec_1/a_test.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-instafail-0.2.4/spec/rspec_1/a_test.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-instafail-0.2.4/spec/rspec_1/a_test.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-instafail-0.2.4/spec/rspec_1/a_test.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rspec-instafail-0.2.4/spec/rspec_1/a_test.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-instafail-0.2.4/spec/rspec_1/a_test.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rspec-instafail-0.2.4/spec/rspec_1/a_test.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-instafail-0.2.4/spec/rspec_1/a_test.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rspec-instafail-0.2.4/spec/rspec_1/a_test.rb
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/rspec-instafail-0.2.4/spec/rspec_1/a_test.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rspec-instafail-0.2.4/spec/rspec_1/a_test.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-instafail-0.2.4/spec/rspec_1/a_test.rb
rails-uploader-0.0.1 vendor/bundle/ruby/1.9.1/gems/rspec-instafail-0.2.4/spec/rspec_1/a_test.rb
rspec-instafail-0.2.4 spec/rspec_1/a_test.rb
rspec-instafail-0.2.3 spec/rspec_1/a_test.rb
rspec-instafail-0.2.2 spec/rspec_2/a_test.rb
rspec-instafail-0.2.2 spec/rspec_1/a_test.rb
rspec-instafail-0.2.1 spec/rspec_1/a_test.rb
rspec-instafail-0.2.1 spec/rspec_2/a_test.rb