Exports after every save.
Export uses path and defaults to /data/todo.txt
Changes write to export.
I'll see if i can throw in some tests now.
Thanks, man. I really appreciate it.
So, I'll admit, I'm struggling here with the test. I can't seem to find a sine command for testing file creation. Can you give me a little direction on what exactly you think this should test? I've not gotten very far :( https://gist.github.com/1747985
https://github.com/vesln/box/blob/master/test/storage.test.js#L85 This test is pretty similar. I hope it will give you some directions.
Thanks that helped, and I'm close I think.
However I'm still getting an error about the file not existing:
It seems I need to able to add in the file path as the argument to the .stub() but I'm not quite sure how. I tried using stub.withArgs() with no success.
Any more pointers?