{"action":"created","issue":{"url":"https://api.github.com/repos/modeset/teaspoon/issues/399","labels_url":"https://api.github.com/repos/modeset/teaspoon/issues/399/labels{/name}","comments_url":"https://api.github.com/repos/modeset/teaspoon/issues/399/comments","events_url":"https://api.github.com/repos/modeset/teaspoon/issues/399/events","html_url":"https://github.com/modeset/teaspoon/issues/399","id":99626936,"number":399,"title":"\"ReferenceError: Can't find variable: Teaspoon\" after upgrading to 0.8.0","user":{"login":"agis-","id":827224,"avatar_url":"https://avatars.githubusercontent.com/u/827224?v=3","gravatar_id":"","url":"https://api.github.com/users/agis-","html_url":"https://github.com/agis-","followers_url":"https://api.github.com/users/agis-/followers","following_url":"https://api.github.com/users/agis-/following{/other_user}","gists_url":"https://api.github.com/users/agis-/gists{/gist_id}","starred_url":"https://api.github.com/users/agis-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agis-/subscriptions","organizations_url":"https://api.github.com/users/agis-/orgs","repos_url":"https://api.github.com/users/agis-/repos","events_url":"https://api.github.com/users/agis-/events{/privacy}","received_events_url":"https://api.github.com/users/agis-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-07T10:56:49Z","updated_at":"2015-08-07T12:31:10Z","closed_at":null,"body":"Hello.\r\n\r\nI've performed the following steps to upgrade from 0.7.9 to 0.8.0 (Rails 3.2.22). I've followed the [described steps in the CHANGELOG](https://github.com/modeset/teaspoon/blob/master/CHANGELOG.md#upgrade-steps-1)  and I get the following error when trying to run the tests:\r\n\r\n```shell\r\n$ RAILS_ENV=test bundle exec teaspoon --suite=default\r\nReferenceError: Can't find variable: Teaspoon\r\n  # http://127.0.0.1:52072/teaspoon/default?reporter=Console:11 -- global code\r\n\r\nReferenceError: Can't find variable: Teaspoon\r\n  # http://127.0.0.1:52072/teaspoon/default?reporter=Console:75 -- global code\r\n\r\nFailed to load: http://127.0.0.1:52072/teaspoon/default?reporter=Console\r\n```\r\n\r\nThe exception is thrown when [`#execute`](https://github.com/modeset/teaspoon/blob/v0.8.0/lib/teaspoon/console.rb#L21) calls [`#execute_without_handling`](https://github.com/modeset/teaspoon/blob/v0.8.0/lib/teaspoon/console.rb#L28). The exception is then rescued a [little later](https://github.com/modeset/teaspoon/blob/v0.8.0/lib/teaspoon/console.rb#L25).\r\n\r\nGrabbing the backtrace of the exception at that point, gives us:\r\n\r\n```shell\r\n> e.backtrace\r\n=> [\"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/runner.rb:53:in `on_exception'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/runner.rb:34:in `notify_formatters'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/runner.rb:17:in `process'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/drivers/phantomjs_driver.rb:24:in `block in run_specs'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/drivers/phantomjs_driver.rb:31:in `each'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/drivers/phantomjs_driver.rb:31:in `block in run'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/drivers/phantomjs_driver.rb:31:in `popen'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/drivers/phantomjs_driver.rb:31:in `run'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/drivers/phantomjs_driver.rb:23:in `run_specs'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/console.rb:45:in `run_specs'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/console.rb:35:in `block in execute_without_handling'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/console.rb:33:in `each'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/console.rb:33:in `inject'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/console.rb:33:in `execute_without_handling'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/console.rb:21:in `execute'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/console.rb:17:in `failures?'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/lib/teaspoon/command_line.rb:13:in `initialize'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/bin/teaspoon:6:in `new'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/gems/teaspoon-0.8.0/bin/teaspoon:6:in `<top (required)>'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/bin/teaspoon:23:in `load'\",\r\n \"/Users/agis/.gem/ruby/2.1.5/bin/teaspoon:23:in `<main>'\"]\r\n```\r\n\r\nI've added my relevant configuration files in [this gist](https://gist.github.com/agis-/7b92dea5b057381db0eb) (also included the actual location of the files).\r\n\r\nNote that before I've made the changes to go to 0.8.0, my spec_helper file was actually named`spec/javascripts/spec_helper.js.coffee` (notice the `.js` part); not sure if this is relevant."},"comment":{"url":"https://api.github.com/repos/modeset/teaspoon/issues/comments/128688368","html_url":"https://github.com/modeset/teaspoon/issues/399#issuecomment-128688368","issue_url":"https://api.github.com/repos/modeset/teaspoon/issues/399","id":128688368,"user":{"login":"agis-","id":827224,"avatar_url":"https://avatars.githubusercontent.com/u/827224?v=3","gravatar_id":"","url":"https://api.github.com/users/agis-","html_url":"https://github.com/agis-","followers_url":"https://api.github.com/users/agis-/followers","following_url":"https://api.github.com/users/agis-/following{/other_user}","gists_url":"https://api.github.com/users/agis-/gists{/gist_id}","starred_url":"https://api.github.com/users/agis-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agis-/subscriptions","organizations_url":"https://api.github.com/users/agis-/orgs","repos_url":"https://api.github.com/users/agis-/repos","events_url":"https://api.github.com/users/agis-/events{/privacy}","received_events_url":"https://api.github.com/users/agis-/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T12:31:10Z","updated_at":"2015-08-07T12:31:10Z","body":"I've followed the steps described in https://github.com/modeset/teaspoon/issues/397#issuecomment-127433338 and I get this page: http://f.cl.ly/items/3U0s300B2n0t0E1Z2r3Z/Image%202015-08-07%20at%203.30.19%20PM.png (I've slightly changed the paths but they look fine anyway)."}}