Created
February 10, 2010 03:00
-
-
Save davidlee/299974 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
module Spec | |
module Example | |
SLOW_SPECS_WARNING = "SKIPPED: CONTINUOUS INTEGRATION only (SLOW_SPECS=y)" | |
module ExampleGroupMethods | |
def skip_unless_ci | |
before(:each) { pending SLOW_SPECS_WARNING } unless ENV['SLOW_SPECS'] | |
end | |
alias :describe :context | |
end | |
module ExampleMethods | |
def skip_unless_ci | |
pending SLOW_SPECS_WARNING unless ENV['SLOW_SPECS'] | |
end | |
end | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment