Skip to content

Instantly share code, notes, and snippets.

@thomasklemm
Created July 20, 2015 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasklemm/76009a494e4e6fda359a to your computer and use it in GitHub Desktop.
Save thomasklemm/76009a494e4e6fda359a to your computer and use it in GitHub Desktop.
How to properly encapsulate and include helper methods in RSpec
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