From 68efb0d52fb14d7104d9de17e60dd06907b62ce1 Mon Sep 17 00:00:00 2001 From: Thibaud Guillaume-Gentil Date: Sat, 3 Sep 2011 14:30:15 +0200 Subject: [PATCH] Focus on failed spec --- lib/guard/listener.rb | 1 + spec/support/listener_helper.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/guard/listener.rb b/lib/guard/listener.rb index 6c400d6..7f50139 100644 --- a/lib/guard/listener.rb +++ b/lib/guard/listener.rb @@ -147,6 +147,7 @@ module Guard # both values down to the second for the comparison. def file_modified?(path, last_event) p path + p @last_event.to_i p last_event.to_i p File.ctime(path).to_i if File.ctime(path).to_i == last_event.to_i diff --git a/spec/support/listener_helper.rb b/spec/support/listener_helper.rb index 6dd2f9d..7527627 100644 --- a/spec/support/listener_helper.rb +++ b/spec/support/listener_helper.rb @@ -102,7 +102,7 @@ shared_examples_for 'a listener that reacts to #on_change' do |rest_delay| results.should =~ [] end - it "not catches a moved file" do + it "not catches a moved file", :focus => true do file1 = @fixture_path.join("folder1/file1.txt") file2 = @fixture_path.join("folder1/movedfile1.txt") File.exists?(file1).should be_true