{"action":"created","issue":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/6516","labels_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/6516/labels{/name}","comments_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/6516/comments","events_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/6516/events","html_url":"https://github.com/code-dot-org/code-dot-org/pull/6516","id":129245728,"number":6516,"title":"Enables admin only tests for :hoc_signups.","user":{"login":"ashercodeorg","id":14206260,"avatar_url":"https://avatars.githubusercontent.com/u/14206260?v=3","gravatar_id":"","url":"https://api.github.com/users/ashercodeorg","html_url":"https://github.com/ashercodeorg","followers_url":"https://api.github.com/users/ashercodeorg/followers","following_url":"https://api.github.com/users/ashercodeorg/following{/other_user}","gists_url":"https://api.github.com/users/ashercodeorg/gists{/gist_id}","starred_url":"https://api.github.com/users/ashercodeorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashercodeorg/subscriptions","organizations_url":"https://api.github.com/users/ashercodeorg/orgs","repos_url":"https://api.github.com/users/ashercodeorg/repos","events_url":"https://api.github.com/users/ashercodeorg/events{/privacy}","received_events_url":"https://api.github.com/users/ashercodeorg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"laurelfan","id":7763,"avatar_url":"https://avatars.githubusercontent.com/u/7763?v=3","gravatar_id":"","url":"https://api.github.com/users/laurelfan","html_url":"https://github.com/laurelfan","followers_url":"https://api.github.com/users/laurelfan/followers","following_url":"https://api.github.com/users/laurelfan/following{/other_user}","gists_url":"https://api.github.com/users/laurelfan/gists{/gist_id}","starred_url":"https://api.github.com/users/laurelfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurelfan/subscriptions","organizations_url":"https://api.github.com/users/laurelfan/orgs","repos_url":"https://api.github.com/users/laurelfan/repos","events_url":"https://api.github.com/users/laurelfan/events{/privacy}","received_events_url":"https://api.github.com/users/laurelfan/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-01-27T19:35:49Z","updated_at":"2016-01-28T21:30:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/6516","html_url":"https://github.com/code-dot-org/code-dot-org/pull/6516","diff_url":"https://github.com/code-dot-org/code-dot-org/pull/6516.diff","patch_url":"https://github.com/code-dot-org/code-dot-org/pull/6516.patch"},"body":"Following dashboard/test/controllers/registrations_controller_test.rb where Pegasus is also stubbed."},"comment":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/comments/176428388","html_url":"https://github.com/code-dot-org/code-dot-org/pull/6516#issuecomment-176428388","issue_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/6516","id":176428388,"user":{"login":"laurelfan","id":7763,"avatar_url":"https://avatars.githubusercontent.com/u/7763?v=3","gravatar_id":"","url":"https://api.github.com/users/laurelfan","html_url":"https://github.com/laurelfan","followers_url":"https://api.github.com/users/laurelfan/followers","following_url":"https://api.github.com/users/laurelfan/following{/other_user}","gists_url":"https://api.github.com/users/laurelfan/gists{/gist_id}","starred_url":"https://api.github.com/users/laurelfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurelfan/subscriptions","organizations_url":"https://api.github.com/users/laurelfan/orgs","repos_url":"https://api.github.com/users/laurelfan/repos","events_url":"https://api.github.com/users/laurelfan/events{/privacy}","received_events_url":"https://api.github.com/users/laurelfan/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T21:30:07Z","updated_at":"2016-01-28T21:30:07Z","body":"it passes locally because you have a pegasus db that it's able to access. I think what's going on is that `DB[:forms]` is calling the real [] method on the DB object (which tries to access the real database), even though the where method (on what that method returns) is stubbed.\r\n\r\nYou can repro what is going on in travis by temporarily overriding your pegasus database config settings in locals.yml to point to a database that doesn't exist, something like: `pegasus_db_name: not_a_real_database_name`\r\n"}}