assertThat(copyDetails.getRelativePath(), equalTo(new RelativePath(true, "spec", "file")));
}
@Test
public void relativePathForDirIsSpecPathPlusFilePath() {
FileVisitDetails visitDetails = expectSpecAndDirVisited();
context.checking(new Expectations(){{
allowing(spec).getDestPath();
will(returnValue(new RelativePath(false, "spec")));
allowing(details).getRelativePath();
will(returnValue(new RelativePath(false, "dir")));
}});
assertThat(visitDetails.getRelativePath(), equalTo(new RelativePath(false, "spec", "dir")));
}