{"push_id":1079606966,"size":1,"distinct_size":1,"ref":"refs/heads/944-allow-popuparchive","head":"bd5d1af5734aba49788d7a0d6db6b85d331e39b6","before":"bfb2e89fb5f2b0f5f10cc98a44e979253efb563c","commits":[{"sha":"bd5d1af5734aba49788d7a0d6db6b85d331e39b6","author":{"email":"c1f61c096b1b2951e5d48c3f8836b2a4c5bf1e92@gmail.com","name":"Andrew Myers"},"message":"Test media access from popuparchive.com\n\n* Fixes a bug in media controller.\n\n* Refactors parts of User model.\n\n* Makes localhost an offsite IP address when testing. This means that to test\n  features for onsite IP addresses, you'll have to explicitly set the remote\n  IP. If your tests have access to the User instance, you can mock the request\n  object that is used by the User instance to return an on-site IP. See\n  spec/models/user_spec.rb for example usage.\n\n  If using capybara, and do not have access to the user instance, you can do\n  set headers on the headless browser driver like this:\n\n      page.driver.option[:header]['REMOTE_ADDR'] = onsite_ip_address\n\n  See spec/features/catalog_spec.rb for example usage.\n\n* Adds a test for accessing media from popuparchive.com.\n\n* Adds additional testing around User#aapb_referer?.","distinct":true,"url":"https://api.github.com/repos/WGBH/AAPB2/commits/bd5d1af5734aba49788d7a0d6db6b85d331e39b6"}]}