Skip to content

Instantly share code, notes, and snippets.

@davidlee
Created February 10, 2010 03:00
Show Gist options
  • Save davidlee/299974 to your computer and use it in GitHub Desktop.
Save davidlee/299974 to your computer and use it in GitHub Desktop.
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