module RSpec::Core::Pending
def pending(*args, &block)
- Note: - `before(:each)` hooks are eval'd when you use the `pending`
Parameters:
-
block
(Block
) -- optional block. If it fails, the example is -
message
(String
) -- optional message to add to the summary report.
Overloads:
-
pending(message, &block)
-
pending(message)
-
pending()
def pending(*args, &block) RSpec.warn_deprecation(<<-EOS.gsub(/^\s+\|/, '')) |The semantics of `RSpec::Core::Pending#pending` are changing in |RSpec 3. In RSpec 2.x, it caused the example to be skipped. In |RSpec 3, the rest of the example will still be run but is expected |to fail, and will be marked as a failure (rather than as pending) |if the example passes. | |Any passed block will no longer be executed. This feature is being |removed since it was semantically inconsistent, and the behaviour it |offered is being made available with the other ways of marking an |example pending. | |To keep the same skip semantics, change `pending` to `skip`. |Otherwise, if you want the new RSpec 3 behavior, you can safely |ignore this warning and continue to upgrade to RSpec 3 without |addressing it. | |Called from #{CallerFilter.first_non_rspec_line}. | EOS pending_no_warning(*args, &block) end