Created
July 9, 2012 10:05
-
-
Save AJFaraday/3075534 to your computer and use it in GitHub Desktop.
stubs structure
This file contains hidden or 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
def test_recalc_with_formula_error | |
Parameter.any_instance.stubs(:default_formula => "=whatever") | |
get :recalc, :id => @task | |
#... | |
ensure | |
Parameter.any_instance.unstub(:default_formula) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment