{"action":"created","issue":{"url":"https://api.github.com/repos/mattheworiordan/capybara-screenshot/issues/155","repository_url":"https://api.github.com/repos/mattheworiordan/capybara-screenshot","labels_url":"https://api.github.com/repos/mattheworiordan/capybara-screenshot/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/mattheworiordan/capybara-screenshot/issues/155/comments","events_url":"https://api.github.com/repos/mattheworiordan/capybara-screenshot/issues/155/events","html_url":"https://github.com/mattheworiordan/capybara-screenshot/issues/155","id":138017234,"number":155,"title":"can't rename file","user":{"login":"NikolaMandic","id":4368690,"avatar_url":"https://avatars.githubusercontent.com/u/4368690?v=3","gravatar_id":"","url":"https://api.github.com/users/NikolaMandic","html_url":"https://github.com/NikolaMandic","followers_url":"https://api.github.com/users/NikolaMandic/followers","following_url":"https://api.github.com/users/NikolaMandic/following{/other_user}","gists_url":"https://api.github.com/users/NikolaMandic/gists{/gist_id}","starred_url":"https://api.github.com/users/NikolaMandic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikolaMandic/subscriptions","organizations_url":"https://api.github.com/users/NikolaMandic/orgs","repos_url":"https://api.github.com/users/NikolaMandic/repos","events_url":"https://api.github.com/users/NikolaMandic/events{/privacy}","received_events_url":"https://api.github.com/users/NikolaMandic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-02T22:49:06Z","updated_at":"2016-03-12T23:43:00Z","closed_at":null,"body":"I've tried\r\nCapybara::Screenshot.register_filename_prefix_formatter(:cucumber) do |scenario|\r\n    \"screenshot_#{scenario.name.split(\" \".join(\"_\"))}\"\r\n end  \r\nin env.rb of cucumber spec but it won't work with screenshot_and_save_page\r\nany tips?\r\ntried to debug but it's like it does not get called at all"},"comment":{"url":"https://api.github.com/repos/mattheworiordan/capybara-screenshot/issues/comments/195835788","html_url":"https://github.com/mattheworiordan/capybara-screenshot/issues/155#issuecomment-195835788","issue_url":"https://api.github.com/repos/mattheworiordan/capybara-screenshot/issues/155","id":195835788,"user":{"login":"NikolaMandic","id":4368690,"avatar_url":"https://avatars.githubusercontent.com/u/4368690?v=3","gravatar_id":"","url":"https://api.github.com/users/NikolaMandic","html_url":"https://github.com/NikolaMandic","followers_url":"https://api.github.com/users/NikolaMandic/followers","following_url":"https://api.github.com/users/NikolaMandic/following{/other_user}","gists_url":"https://api.github.com/users/NikolaMandic/gists{/gist_id}","starred_url":"https://api.github.com/users/NikolaMandic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikolaMandic/subscriptions","organizations_url":"https://api.github.com/users/NikolaMandic/orgs","repos_url":"https://api.github.com/users/NikolaMandic/repos","events_url":"https://api.github.com/users/NikolaMandic/events{/privacy}","received_events_url":"https://api.github.com/users/NikolaMandic/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T23:43:00Z","updated_at":"2016-03-12T23:43:00Z","body":"I wanted to manually save a screen shot not after failure. Then it does not work."}}