HomePhorge

(PUP-3912) Replace conditional pending blocks
90404a717604Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-3912) Replace conditional pending blocks

Rspec 3 drops support for conditional pending blocks, so
replace them.

Since a rspec 2 'pending' is an rspec 3 'skip' replace some with:

if condition
  skip
else
  <test>
end

Or in some cases, just replace with:

describe "stuff", :if => condition
  <test>
end

This isn't strictly a pending or a skip, but this was used
in cases where the condition at hand (a particularly ruby bug)
was out of the hands of this code base, so it's not really
*pending* anything, it's just a dependency.

This also exposed a couple 'should' -> 'expect ... to' instances
not converted by transpec so I fixed those.

Details

Provenance
Kylo Ginsberg <kylo@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUf1d34fe53611: (PUP-3912) Update use of pending to skip
Branches
Unknown
Tags
Unknown

Event Timeline

Kylo Ginsberg <kylo@puppetlabs.com> committed rPU90404a717604: (PUP-3912) Replace conditional pending blocks (authored by Kylo Ginsberg <kylo@puppetlabs.com>).Jan 26 2015, 8:52 PM