Skip to content

Instantly share code, notes, and snippets.

@frullah
Created October 5, 2020 04:39
Show Gist options
  • Save frullah/face8635ba5ca90200d8819456cc0bd5 to your computer and use it in GitHub Desktop.
Save frullah/face8635ba5ca90200d8819456cc0bd5 to your computer and use it in GitHub Desktop.
rails additional rspec guard watch
# factories
begin
require "active_support/inflector"
watch(%r{spec/factories/(.+).rb}) do |match|
"#{rspec.spec_dir}/models/#{match[1].singularize}_spec.rb"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment