Guest User

Untitled

a guest
Jan 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. watch(%r{^spec/factories/(.+)(?:_factory)?.rb$}) do |m|
  2. %W[
  3. spec/models/#{m[1].singularize}_spec.rb
  4. spec/controllers/#{m[1]}_controller_spec.rb
  5. spec/requests/#{m[1]}_spec.rb
  6. ]
  7. end
  8.  
  9. Spork.each_run do
  10. # This code will be run each time you run your specs.
  11. FactoryGirl.reload
  12. DatabaseCleaner.clean
  13.  
  14.  
  15. # Load seeds
  16. require "#{Rails.root}/db/seeds.rb"
  17. end
Add Comment
Please, Sign In to add comment