Skip to content

Instantly share code, notes, and snippets.

@myronmarston
Created March 26, 2013 20:47
Show Gist options
  • Save myronmarston/5249093 to your computer and use it in GitHub Desktop.
Save myronmarston/5249093 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe MyClass do
it 'does something', :wip do
end
it 'does something else' do
end
end
RSpec.configure do |rspec|
rspec.treat_symbols_as_metadata_keys_with_true_values = true
rspec.before(:each, :wip) do
pending "Skipping since this example is WIP"
end if ENV['SKIP_WIP']
end
$ SKIP_WIP=1 rspec
# => Makes all the :wip examples pending
$ rspec
# => runs all examples (including :wip ones). :wip ones will report failures if they fail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment