rspec pending results in falied test rspec pending results in falied test ruby ruby

rspec pending results in falied test


As of Rspec 3.x, pending specs are actually run, and if they pass, it's considered a failure (because if it passes, then Rspec thinks it shouldn't be pending).

You can use skip instead of pending to make sure your spec doesn't actually run.

More info: https://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#changes-to-pending-semantics-and-introduction-of-skip


Here's your clue:

should be an array and not be empty FIXED

Things that pass will cause a pending test to fail. Check the docs for examples [1], [2].

  1. RSpec 2
  2. RSpec 3