Skip to content

Instantly share code, notes, and snippets.

@csamuel
Created July 1, 2010 17:39
Show Gist options
  • Save csamuel/460278 to your computer and use it in GitHub Desktop.
Save csamuel/460278 to your computer and use it in GitHub Desktop.
def using(*args)
args.pop.each { |key, value| options[key.to_sym] = value } if Hash === args.last
args.each do |name|
if TestFramework.has?(name)
self.framework = name
elsif name == :integration
options[:integration] = true
else
Buildr.application.deprecated "Please replace with using(:#{name}=>true)"
options[name.to_sym] = true
end
end
self
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment