Changes write to export. #4

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
@sirkitree
Contributor

sirkitree commented Feb 4, 2012

Exports after every save.
Export uses path and defaults to /data/todo.txt

Changes write to export.
Exports after every save.
Export uses path and defaults to /data/todo.txt
@sirkitree

This comment has been minimized.

Show comment
Hide comment
@sirkitree

sirkitree Feb 4, 2012

Contributor

I'll see if i can throw in some tests now.

Contributor

sirkitree commented Feb 4, 2012

I'll see if i can throw in some tests now.

@vesln

This comment has been minimized.

Show comment
Hide comment
@vesln

vesln Feb 4, 2012

Owner

Thanks, man. I really appreciate it.

Owner

vesln commented Feb 4, 2012

Thanks, man. I really appreciate it.

@sirkitree

This comment has been minimized.

Show comment
Hide comment
@sirkitree

sirkitree Feb 5, 2012

Contributor

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

Contributor

sirkitree commented Feb 5, 2012

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

@vesln

This comment has been minimized.

Show comment
Hide comment
@vesln

vesln Feb 5, 2012

Owner

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.

Owner

vesln commented Feb 5, 2012

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.

@sirkitree

This comment has been minimized.

Show comment
Hide comment
@sirkitree

sirkitree Feb 6, 2012

Contributor

Thanks that helped, and I'm close I think.

https://gist.github.com/1747985

However I'm still getting an error about the file not existing:
error

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?

Contributor

sirkitree commented Feb 6, 2012

Thanks that helped, and I'm close I think.

https://gist.github.com/1747985

However I'm still getting an error about the file not existing:
error

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?

@vesln vesln closed this Jan 19, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment