Created
December 15, 2014 21:05
-
-
Save kerinin/4f6c2a108676ba2b6eee to your computer and use it in GitHub Desktop.
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 let_once(method, &block) | |
before(:all) do | |
@let_once ||= {} | |
@let_once[method] = block.call | |
end | |
let(method) do | |
@let_once[method] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment