Remove unnecessary File creation. Specs are now passing on 1.8.7.

This commit is contained in:
Michael Kessler 2011-05-12 17:00:00 +02:00
parent 3a87a4305c
commit d3dab8b962

View File

@ -42,9 +42,9 @@ describe Guard::Listener do
describe "#modified_files" do describe "#modified_files" do
subject { described_class.new } subject { described_class.new }
let(:file1) { File.new(@fixture_path.join("folder1", "file1.txt")) } let(:file1) { @fixture_path.join("folder1", "file1.txt") }
let(:file2) { File.new(@fixture_path.join("folder1", "folder2", "file2.txt")) } let(:file2) { @fixture_path.join("folder1", "folder2", "file2.txt") }
let(:file3) { File.new(@fixture_path.join("folder1", "deletedfile1.txt")) } let(:file3) { @fixture_path.join("folder1", "deletedfile1.txt") }
before do before do
subject.update_last_event subject.update_last_event