Created
July 20, 2015 09:10
-
-
Save thomasklemm/76009a494e4e6fda359a to your computer and use it in GitHub Desktop.
How to properly encapsulate and include helper methods in RSpec
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 UserSpecHelper | |
def my_spec_helper_method(*args) | |
# ... | |
end | |
end | |
RSpec.configure do |config| | |
config.include UserSpecHelper | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment