Focus on failed spec

This commit is contained in:
Thibaud Guillaume-Gentil 2011-09-03 14:30:15 +02:00
parent 667b248ad0
commit 68efb0d52f
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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