Skip to content

Instantly share code, notes, and snippets.

@Bill
Created April 15, 2009 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bill/95507 to your computer and use it in GitHub Desktop.
Save Bill/95507 to your computer and use it in GitHub Desktop.
# the approved way to add methods to example groups in rspec
# from David Chelimsky's comment here http://www.benmabey.com/2008/06/08/writing-macros-in-rspec/
Spec::Runner.configure do |config|
config.include(AssignMacro, :type => :controllers)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment