Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support conversion of pending examples #38

Closed
yujinakayama opened this issue Feb 8, 2014 · 0 comments
Closed

Support conversion of pending examples #38

yujinakayama opened this issue Feb 8, 2014 · 0 comments

Comments

@yujinakayama
Copy link
Owner

Convert:

describe 'RSpec 2' do
  # Skipped
  pending 'does something' do
    do_something_possibly_fail
  end

  # Skipped
  it 'does something' do
    pending
    do_something_possibly_fail
  end

  # Skipped
  it 'does something', :pending do
    do_something_possibly_fail
  end

  it 'does something' do
    pending do
      # Run and expected to fail
      do_something_surely_fail
    end
  end
end

To:

describe 'RSpec 3' do
  skip 'does something' do
    do_something_possibly_fail
  end

  it 'does something' do
    skip
    do_something_possibly_fail
  end

  it 'does something', :skip do
    do_something_possibly_fail
  end

  it 'does something' do
    # #pending with block is no longer supported
    pending
    do_something_surely_fail
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant