Guest User

Untitled

a guest
May 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. def using(*args)
  2. args.pop.each { |key, value| options[key.to_sym] = value } if Hash === args.last
  3. args.each do |name|
  4. if TestFramework.has?(name)
  5. self.framework = name
  6. elsif name == :integration
  7. options[:integration] = true
  8. else
  9. Buildr.application.deprecated "Please replace with using(:#{name}=>true)"
  10. options[name.to_sym] = true
  11. end
  12. end
  13. self
  14. end
Add Comment
Please, Sign In to add comment