Skip to content

Instantly share code, notes, and snippets.

@febuiles
Created December 18, 2008 18:34
Show Gist options
  • Select an option

  • Save febuiles/37586 to your computer and use it in GitHub Desktop.

Select an option

Save febuiles/37586 to your computer and use it in GitHub Desktop.
1)
File::Stat#zero? zero? returns false for a directory ERROR
TypeError: can't convert nil into String
./1.8/core//file/stat/fixtures/classes.rb:3:in `lstat'
./1.8/core//file/stat/fixtures/classes.rb:3:in `method_missing'
./1.8/core//file/stat/../../../shared/file/zero.rb:56:in `send'
./1.8/core//file/stat/../../../shared/file/zero.rb:56
./1.8/core//file/stat/fixtures/classes.rb:3:in `all?'
./1.8/core//file/stat/zero_spec.rb:5
2)
File.zero? zero? returns false for a directory ERROR
TypeError: can't convert nil into String
./1.8/core//file/../../shared/file/zero.rb:56:in `zero?'
./1.8/core//file/../../shared/file/zero.rb:56:in `send'
./1.8/core//file/../../shared/file/zero.rb:56
./1.8/core//file/../../shared/file/zero.rb:42:in `all?'
./1.8/core//file/zero_spec.rb:4
3)
FileTest.zero? zero? returns false for a directory ERROR
TypeError: can't convert nil into String
./1.8/core//filetest/../../shared/file/zero.rb:56:in `zero?'
./1.8/core//filetest/../../shared/file/zero.rb:56:in `send'
./1.8/core//filetest/../../shared/file/zero.rb:56
./1.8/core//filetest/../../shared/file/zero.rb:42:in `all?'
./1.8/core//filetest/zero_spec.rb:4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment