Skip to content

Instantly share code, notes, and snippets.

@zmoazeni
Created July 7, 2009 12:26
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 zmoazeni/142047 to your computer and use it in GitHub Desktop.
Save zmoazeni/142047 to your computer and use it in GitHub Desktop.
## Don't critique too heavily. This is just an rspec hack.
module Spec::Example::ExampleGroupMethods
def stub_all_filters!
prepend_before do
@controller.class.filter_chain.each do |filter|
@controller.stubs(filter.method).returns(true)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment