Sha256: 55bddbb4ae1108a9c22b9a5c9290c713716b8e0c4fda78deea0599fca89c4a9a

Contents?: true

Size: 806 Bytes

Versions: 5

Compression:

Stored size: 806 Bytes

Contents

describe 'skip' do
  it 'in example, no promise' do
    skip 'want to skip within'
  end
  
  it 'no implementation provided'

  skip 'entire group' do
    it 'example 1' do
      1.should == 2
    end

    it 'example 2' do
      1.should == 3
    end
  end

  xit 'via xit' do
    1.should == 3
  end

  it 'via variable', skip: true do
    1.should == 3
  end
end

describe 'pending' do
  context 'in example' do
    context 'no promise' do
      it 'would fail otherwise' do
        pending 'want to pend within example'
        obj = [1, 2, 3, 4]
        obj.should == [2, 2, 3, 4]    
      end
  
      it 'would not fail otherwise, thus fails properly' do
        pending 'want to pend within example'
        obj = [1, 2, 3, 4]
        obj.should == [1, 2, 3, 4]    
      end
    end
  end  
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
opal-connect-rspec-0.5.0 spec/opal/skip_pending_spec.rb
opal-rspec-0.5.0 spec/opal/skip_pending_spec.rb
opal-rspec-0.5.0.beta3 spec/opal/skip_pending_spec.rb
opal-rspec-0.5.0.beta2 spec/skip_pending_spec.rb
opal-rspec-0.5.0.beta1 spec/skip_pending_spec.rb