Created
October 20, 2011 01:12
-
-
Save gutenye/1300152 to your computer and use it in GitHub Desktop.
disable suite and test in RSpec
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
# put this in spec_helper.rb | |
module Kernel | |
private | |
def xdescribe(*args, &blk) | |
describe *args do | |
pending "xxxxxxxxx" | |
end | |
end | |
def xcontext(*args, &blk) | |
context *args do | |
pending "xxxxxxxxx" | |
end | |
end | |
def xit(*args, &blk) | |
it *args do | |
pending "xxxxxxxx" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see http://stackoverflow.com/questions/5918606/disable-a-group-of-tests-in-rspec