From d3dab8b962d262d697c844b7409e96bea0a96dbe Mon Sep 17 00:00:00 2001 From: Michael Kessler Date: Thu, 12 May 2011 17:00:00 +0200 Subject: [PATCH] Remove unnecessary File creation. Specs are now passing on 1.8.7. --- spec/guard/listener_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/guard/listener_spec.rb b/spec/guard/listener_spec.rb index 5c9bb3e..8999fbe 100644 --- a/spec/guard/listener_spec.rb +++ b/spec/guard/listener_spec.rb @@ -42,9 +42,9 @@ describe Guard::Listener do describe "#modified_files" do subject { described_class.new } - let(:file1) { File.new(@fixture_path.join("folder1", "file1.txt")) } - let(:file2) { File.new(@fixture_path.join("folder1", "folder2", "file2.txt")) } - let(:file3) { File.new(@fixture_path.join("folder1", "deletedfile1.txt")) } + let(:file1) { @fixture_path.join("folder1", "file1.txt") } + let(:file2) { @fixture_path.join("folder1", "folder2", "file2.txt") } + let(:file3) { @fixture_path.join("folder1", "deletedfile1.txt") } before do subject.update_last_event