Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a working default for test snapshot #2

Closed
dblock opened this issue Jan 14, 2014 · 3 comments
Closed

Provide a working default for test snapshot #2

dblock opened this issue Jan 14, 2014 · 3 comments
Labels

Comments

@dblock
Copy link
Owner

dblock commented Jan 14, 2014

Currently requires specifying snapshot name, eg. "FBExampleView":

expect(view).to.haveValidSnapshot(@"FBExampleView");

There should be a way to find the full "path" of an specta test at runtime.

@orta
Copy link
Collaborator

orta commented Jan 15, 2014

As mentioned in reply to https://twitter.com/ceterum_censeo/status/423487687396687872

This might get complex with multiple haveValidSnapshots in the it(@"",^{ }) block. As we could get the string path of the test but we'd have to add indexes.

@dblock
Copy link
Owner Author

dblock commented Jan 15, 2014

I think this is all about providing a default. Which should work in simple cases.

@dblock
Copy link
Owner Author

dblock commented Jan 18, 2014

Closed via #5.

@dblock dblock closed this as completed Jan 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants