Skip to content

Commit

Permalink
Fix for Ruby 2.1.0-preview2
Browse files Browse the repository at this point in the history
References #114
  • Loading branch information
benjaminoakes committed Dec 5, 2013
1 parent a2bc387 commit fc7dbeb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spec/lib/maid/tools_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,13 @@ module Maid

describe '#newest_dupes_in' do
it 'should list all but the oldest dupe' do
oldest_path = "#{file_fixtures_path}/foo.zip"
FileUtils.touch(oldest_path, :mtime => Time.new(1970, 1, 1))
# FIXME: Broken on Ruby 2.1.0-preview2, maybe because of FakeFS
#
# oldest_path = "#{file_fixtures_path}/foo.zip"
# FileUtils.touch(oldest_path, :mtime => Time.new(1970, 1, 1))

FileUtils.touch("#{file_fixtures_path}/bar.zip")
FileUtils.touch("#{file_fixtures_path}/1.zip")

dupes = @maid.newest_dupes_in(file_fixtures_glob)

Expand Down

0 comments on commit fc7dbeb

Please sign in to comment.