Created
March 26, 2013 20:47
-
-
Save myronmarston/5249093 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe MyClass do | |
it 'does something', :wip do | |
end | |
it 'does something else' do | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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