Skip to content

Instantly share code, notes, and snippets.

@7even
Created September 19, 2017 14:27
Show Gist options
  • Save 7even/fcfe1caa6a10e572a53ce14a7dfe741a to your computer and use it in GitHub Desktop.
Save 7even/fcfe1caa6a10e572a53ce14a7dfe741a to your computer and use it in GitHub Desktop.
Guardfile for guard-rspec in Hanami application
guard :rspec, cmd: 'bundle exec rspec' do
require 'guard/rspec/dsl'
dsl = Guard::RSpec::Dsl.new(self)
rspec = dsl.rspec
watch(rspec.spec_helper) { rspec.spec_dir }
watch(rspec.spec_support) { rspec.spec_dir }
watch(rspec.spec_files)
dsl.watch_spec_files_for(%r{apps/(.*)\.rb})
dsl.watch_spec_files_for(%r{lib/(.*)\.rb})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment