spec/util/file_permissions_spec.rb in wright-0.1.2 vs spec/util/file_permissions_spec.rb in wright-0.2.0

- old
+ new

@@ -75,11 +75,11 @@ @dir_permissions.current_mode.must_equal 0755 end end it 'should update file owners' do - user1 = Etc.getpwent - user2 = Etc.getpwent + user1 = Etc.getpwuid(0) + user2 = Etc.getpwuid(1) FakeFS do FileUtils.touch(@file_permissions.filename) FileUtils.chown(user1.name, nil, @file_permissions.filename) @file_permissions.current_owner.must_equal user1.uid @file_permissions.owner = user2.name