| Index: pkg/path/test/io_test.dart
|
| diff --git a/pkg/path/test/io_test.dart b/pkg/path/test/io_test.dart
|
| index 665124954c27bb1c344096e4094436cdfca01a9e..1b1bea99fa7e4afb78dac7c214127663d7058899 100644
|
| --- a/pkg/path/test/io_test.dart
|
| +++ b/pkg/path/test/io_test.dart
|
| @@ -36,4 +36,18 @@ main() {
|
| test('current', () {
|
| expect(path.current, io.Directory.current.path);
|
| });
|
| +
|
| + test('registers changes to the working directory', () {
|
| + expect(path.absolute('foo/bar'),
|
| + equals(path.join(io.Directory.current.path, 'foo/bar')));
|
| +
|
| + var sandbox = io.Directory.systemTemp.createTempSync('path_test_').path;
|
| + try {
|
| + io.Directory.current = sandbox;
|
| +
|
| + expect(path.absolute('foo/bar'), equals(path.join(sandbox, 'foo/bar')));
|
| + } finally {
|
| + new io.Directory(sandbox).deleteSync(recursive: true);
|
| + }
|
| + });
|
| }
|
|
|