HelloFSTest.Stat_NonExistent

geesefs-0-30-9
Aaron Jacobs 2015-02-27 14:55:02 +11:00
parent 54b7c34e8f
commit 39d60191f7
1 changed files with 4 additions and 1 deletions

View File

@ -171,7 +171,10 @@ func (t *HelloFSTest) Stat_World() {
}
func (t *HelloFSTest) Stat_NonExistent() {
AssertTrue(false, "TODO")
_, err := os.Stat(path.Join(t.mfs.Dir(), "foobar"))
AssertNe(nil, err)
ExpectThat(err, Error(HasSubstr("no such file")))
}
func (t *HelloFSTest) Read_Hello() {