{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/paperclip/issues/2199","repository_url":"https://api.github.com/repos/thoughtbot/paperclip","labels_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/2199/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/2199/comments","events_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/2199/events","html_url":"https://github.com/thoughtbot/paperclip/issues/2199","id":153899348,"number":2199,"title":"tests on master should have no failures on any computer","user":{"login":"tute","id":54260,"avatar_url":"https://avatars.githubusercontent.com/u/54260?v=3","gravatar_id":"","url":"https://api.github.com/users/tute","html_url":"https://github.com/tute","followers_url":"https://api.github.com/users/tute/followers","following_url":"https://api.github.com/users/tute/following{/other_user}","gists_url":"https://api.github.com/users/tute/gists{/gist_id}","starred_url":"https://api.github.com/users/tute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tute/subscriptions","organizations_url":"https://api.github.com/users/tute/orgs","repos_url":"https://api.github.com/users/tute/repos","events_url":"https://api.github.com/users/tute/events{/privacy}","received_events_url":"https://api.github.com/users/tute/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thoughtbot/paperclip/labels/Convert%20to%20PR","name":"Convert to PR","color":"fad8c7"},{"url":"https://api.github.com/repos/thoughtbot/paperclip/labels/help%20wanted","name":"help wanted","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-10T00:28:20Z","updated_at":"2016-05-10T15:50:04Z","closed_at":null,"body":"Right now they are only green in CI. Different computers fail differently, in mine I get:\r\n\r\n```\r\nrspec ./spec/paperclip/validators_spec.rb:21 # Paperclip::Validators using the helper prevents you from attaching a file that violates that validation\r\nrspec ./spec/paperclip/storage/s3_spec.rb:696 # Paperclip::Storage::S3 Parsing S3 credentials with a s3_host_name in them gets the right s3_host_name if the key does not exist\r\nrspec ./spec/paperclip/attachment_processing_spec.rb:52 # Attachment Processing using validates_attachment processes attachments given a valid assignment\r\n```"},"comment":{"url":"https://api.github.com/repos/thoughtbot/paperclip/issues/comments/218201934","html_url":"https://github.com/thoughtbot/paperclip/issues/2199#issuecomment-218201934","issue_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/2199","id":218201934,"user":{"login":"tute","id":54260,"avatar_url":"https://avatars.githubusercontent.com/u/54260?v=3","gravatar_id":"","url":"https://api.github.com/users/tute","html_url":"https://github.com/tute","followers_url":"https://api.github.com/users/tute/followers","following_url":"https://api.github.com/users/tute/following{/other_user}","gists_url":"https://api.github.com/users/tute/gists{/gist_id}","starred_url":"https://api.github.com/users/tute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tute/subscriptions","organizations_url":"https://api.github.com/users/tute/orgs","repos_url":"https://api.github.com/users/tute/repos","events_url":"https://api.github.com/users/tute/events{/privacy}","received_events_url":"https://api.github.com/users/tute/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T15:50:04Z","updated_at":"2016-05-10T15:50:04Z","body":"That is a very weird spec. Why do we need the `rails_env(\"test\")` block?\r\n\r\n> Seems like we have a quick fix by just adding the test env hash with s3_region pointing to an empty string (in https://github.com/thoughtbot/paperclip/blob/master/spec/paperclip/storage/s3_spec.rb#L667).\r\n>\r\n> I can PR this if you agree that's a reasonable solution.\r\n\r\nThat makes sense to me. 👍 Thanks for your help!"}}