Skip to content

Instantly share code, notes, and snippets.

@pascalesdedy
Last active October 21, 2018 20:18
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 pascalesdedy/3395ee6a23bd351cd925e510aa9467c8 to your computer and use it in GitHub Desktop.
Save pascalesdedy/3395ee6a23bd351cd925e510aa9467c8 to your computer and use it in GitHub Desktop.
spec/rails_helper.rb - used for creating simple CRUD TDD
# spec/rails_helper.rb
# [...]
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
# [...]
RSpec.configuration do |config|
# [...]
config.include RequestSpecHelper, type: :request
# [...]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment