test/file_item_test.rb in adrian-1.3.2 vs test/file_item_test.rb in adrian-1.3.3

- old
+ new

@@ -113,19 +113,19 @@ describe 'touch' do it 'changes the update timestamp to the current time' do now = Time.now - 100 - Time.stub(:new, now) { @item.touch } + Time.stub(:now, now) { @item.touch } assert_equal now.to_i, @item.updated_at.to_i end it 'changes the atime' do atime = File.atime(@item.path).to_i now = (Time.now - 100) - Time.stub(:new, now) { @item.touch } + Time.stub(:now, now) { @item.touch } now.to_i.wont_equal atime File.atime(@item.path).to_i.must_equal now.to_i end