Created
July 7, 2009 12:26
-
-
Save zmoazeni/142047 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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