Skip to content

Instantly share code, notes, and snippets.

@kerinin
Created December 15, 2014 21:05
Show Gist options
  • Save kerinin/4f6c2a108676ba2b6eee to your computer and use it in GitHub Desktop.
Save kerinin/4f6c2a108676ba2b6eee to your computer and use it in GitHub Desktop.
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