{"action":"created","issue":{"url":"https://api.github.com/repos/ashfurrow/Nimble-Snapshots/issues/15","labels_url":"https://api.github.com/repos/ashfurrow/Nimble-Snapshots/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/ashfurrow/Nimble-Snapshots/issues/15/comments","events_url":"https://api.github.com/repos/ashfurrow/Nimble-Snapshots/issues/15/events","html_url":"https://github.com/ashfurrow/Nimble-Snapshots/issues/15","id":49833222,"number":15,"title":"Device or screen size based assertion","user":{"login":"ryancrosby","id":882015,"avatar_url":"https://avatars.githubusercontent.com/u/882015?v=3","gravatar_id":"","url":"https://api.github.com/users/ryancrosby","html_url":"https://github.com/ryancrosby","followers_url":"https://api.github.com/users/ryancrosby/followers","following_url":"https://api.github.com/users/ryancrosby/following{/other_user}","gists_url":"https://api.github.com/users/ryancrosby/gists{/gist_id}","starred_url":"https://api.github.com/users/ryancrosby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryancrosby/subscriptions","organizations_url":"https://api.github.com/users/ryancrosby/orgs","repos_url":"https://api.github.com/users/ryancrosby/repos","events_url":"https://api.github.com/users/ryancrosby/events{/privacy}","received_events_url":"https://api.github.com/users/ryancrosby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2014-11-23T18:05:06Z","updated_at":"2015-05-06T13:35:02Z","closed_at":null,"body":"This framework is great, but for some view assertions they don't work across devices. I would like to have a haveValidScreenRatioDependentSnapshot(), that would generate a file name using the an aspect ratio, device type, or screensize. Not exactly sure on the naming or how best to implement this. This would make Xcode Continuous Integrations tests pass better when using a screen snapshot or full width or height snapshot, since it can test on all devices.\r\n\r\nI haven't looked into what the facebook library provides yet, but wanted to bring this up as a potential feature in the meantime. Any thoughts?"},"comment":{"url":"https://api.github.com/repos/ashfurrow/Nimble-Snapshots/issues/comments/99461730","html_url":"https://github.com/ashfurrow/Nimble-Snapshots/issues/15#issuecomment-99461730","issue_url":"https://api.github.com/repos/ashfurrow/Nimble-Snapshots/issues/15","id":99461730,"user":{"login":"orta","id":49038,"avatar_url":"https://avatars.githubusercontent.com/u/49038?v=3","gravatar_id":"","url":"https://api.github.com/users/orta","html_url":"https://github.com/orta","followers_url":"https://api.github.com/users/orta/followers","following_url":"https://api.github.com/users/orta/following{/other_user}","gists_url":"https://api.github.com/users/orta/gists{/gist_id}","starred_url":"https://api.github.com/users/orta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orta/subscriptions","organizations_url":"https://api.github.com/users/orta/orgs","repos_url":"https://api.github.com/users/orta/repos","events_url":"https://api.github.com/users/orta/events{/privacy}","received_events_url":"https://api.github.com/users/orta/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T13:35:02Z","updated_at":"2015-05-06T13:35:02Z","body":"In [eigen](https://github.com/artsy/eigen/) I added [this mock](https://github.com/artsy/eigen/blob/master/Artsy%20Tests/ARTestContext.m#L45) (for iOS8) to allow for setting device sizes in tests that [look like this](https://github.com/artsy/eigen/blob/master/Artsy%20Tests/ARExpectaExtensions.m#L3). I wouldn't be surprised if something like this is one answer."}}