class FakeFS::Pathname

def writable?

See FileTest.writable?.
def writable?
  FileTest.writable?(@path)
end