We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 702a050 commit 7d07be1Copy full SHA for 7d07be1
.gitignore
@@ -1,6 +1,7 @@
1
.*
2
!.gitignore
3
!.gitmodules
4
+!*.example
5
*.gem
6
.bundle
7
Gemfile.lock
.rspec.example
@@ -0,0 +1 @@
+--color
.watchr.example
@@ -0,0 +1,13 @@
+ROOT_PATH = File.dirname(__FILE__)
+
+def run_spec(file)
+ system "rspec #{file}" if File.exist?(File.join(ROOT_PATH, file))
+end
+watch('spec/.*_spec\.rb') {|m| run_spec m[0] }
8
+watch('spec/notes/.*_spec\.rb') {|m| run_spec m[0] }
9
10
+watch('lib/rails-footnotes/(.*)\.rb') {|m| run_spec("spec/#{m[1]}_spec.rb") }
11
+watch('lib/rails-footnotes/notes/.*_note\.rb') {|m| run_spec("spec/notes/#{m[1]}") }
12
13
+watch('Gemfile') {|m| run_spec("spec") }
0 commit comments