Sha256: 4d71a62c8fdfe9b496129526f5538dd9e413be457ddd6be0050743150183baec
Contents?: true
Size: 820 Bytes
Versions: 3
Compression:
Stored size: 820 Bytes
Contents
module Spec module Example describe Pending do it 'should raise an ExamplePendingError if no block is supplied' do lambda { include Pending pending "TODO" }.should raise_error(ExamplePendingError, /TODO/) end it 'should raise an ExamplePendingError if a supplied block fails as expected' do lambda { include Pending pending "TODO" do raise "oops" end }.should raise_error(ExamplePendingError, /TODO/) end it 'should raise a PendingExampleFixedError if a supplied block starts working' do lambda { include Pending pending "TODO" do # success! end }.should raise_error(PendingExampleFixedError, /TODO/) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems