Created
September 17, 2017 00:16
-
-
Save techno-tanoC/6ce381f56236b1086763cf9e59007f6c 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
module RSpecHelper | |
def leads | |
if block_given? | |
subject | |
expect(yield) | |
else | |
expect { subject } | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
これじゃいかんのか