From 7363b6f13bfcd9f583bbf7cd1e0d65c2dc656db7 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sat, 21 May 2011 10:10:23 -0400 Subject: [PATCH] flock can't break --- lib/fakefs/file.rb | 2 +- test.watchr | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 test.watchr diff --git a/lib/fakefs/file.rb b/lib/fakefs/file.rb index 01931c6..0fe0c8c 100644 --- a/lib/fakefs/file.rb +++ b/lib/fakefs/file.rb @@ -337,7 +337,7 @@ module FakeFS end def flock(locking_constant) - raise NotImplementedError + #raise NotImplementedError end def mtime diff --git a/test.watchr b/test.watchr new file mode 100644 index 0000000..a03b4d1 --- /dev/null +++ b/test.watchr @@ -0,0 +1,6 @@ +watch('test/.*_test.rb') { run_tests } +watch('lib/.*.rb') { run_tests } + +def run_tests + system 'rake test' +end