Skip to content

Instantly share code, notes, and snippets.

View EvanTedesco's full-sized avatar

Evan Tedesco EvanTedesco

View GitHub Profile
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.clean_with(:truncation)
end
config.before(:each) do
DatabaseCleaner.strategy = :transaction
end
   ____        _      _    _       __ _   _        
  / __ \      (_)    | |  | |     / _| | ( )       
 | |  | |_   _ _  ___| | _| | ___| |_| |_|/ ___    
 | |  | | | | | |/ __| |/ | |/ _ |  _| __| / __|   
 | |__| | |_| | | (__|   <| |  __| | | |_  \__ \   
  \___\_\\__,_|_|\___|_|\_|_|\___|_|  \__| |___/   
 |  _ \      | | | | | |             / _|          
 | |_) | __ _| |_| |_| | ___    ___ | |_           
 |  _ < / _` | __| __| |/ _ \  / _ \|  _|          
 | |_) | (_| | |_| |_| |  __/ | (_) | |