{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/react-rails/issues/353","labels_url":"https://api.github.com/repos/reactjs/react-rails/issues/353/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-rails/issues/353/comments","events_url":"https://api.github.com/repos/reactjs/react-rails/issues/353/events","html_url":"https://github.com/reactjs/react-rails/issues/353","id":106657532,"number":353,"title":"React Rails Testing","user":{"login":"taylorallred","id":2107443,"avatar_url":"https://avatars.githubusercontent.com/u/2107443?v=3","gravatar_id":"","url":"https://api.github.com/users/taylorallred","html_url":"https://github.com/taylorallred","followers_url":"https://api.github.com/users/taylorallred/followers","following_url":"https://api.github.com/users/taylorallred/following{/other_user}","gists_url":"https://api.github.com/users/taylorallred/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorallred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorallred/subscriptions","organizations_url":"https://api.github.com/users/taylorallred/orgs","repos_url":"https://api.github.com/users/taylorallred/repos","events_url":"https://api.github.com/users/taylorallred/events{/privacy}","received_events_url":"https://api.github.com/users/taylorallred/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-15T22:06:22Z","updated_at":"2015-09-15T23:09:32Z","closed_at":null,"body":"I just updated to 1.3.0, ran `rake test` and got this error message: \r\n\r\n`ActionView::Template::Error: undefined method 'react_component' for nil:NilClass\r\n    app/views/layouts/application.html.erb:30:in '_app_views_layouts_application_html_erb___3811361224884677630_70195218569900'`\r\n\r\nThis only happens when I run my tests and doesn't happen when I run the code in the browser. When I stepped back to 1.2.0 it fixed the issue.\r\n\r\nI'm calling `react_component` in my application.html.erb file."},"comment":{"url":"https://api.github.com/repos/reactjs/react-rails/issues/comments/140577421","html_url":"https://github.com/reactjs/react-rails/issues/353#issuecomment-140577421","issue_url":"https://api.github.com/repos/reactjs/react-rails/issues/353","id":140577421,"user":{"login":"taylorallred","id":2107443,"avatar_url":"https://avatars.githubusercontent.com/u/2107443?v=3","gravatar_id":"","url":"https://api.github.com/users/taylorallred","html_url":"https://github.com/taylorallred","followers_url":"https://api.github.com/users/taylorallred/followers","following_url":"https://api.github.com/users/taylorallred/following{/other_user}","gists_url":"https://api.github.com/users/taylorallred/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorallred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorallred/subscriptions","organizations_url":"https://api.github.com/users/taylorallred/orgs","repos_url":"https://api.github.com/users/taylorallred/repos","events_url":"https://api.github.com/users/taylorallred/events{/privacy}","received_events_url":"https://api.github.com/users/taylorallred/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T23:09:32Z","updated_at":"2015-09-15T23:09:32Z","body":"We use:\r\ngroup :development, :test do\r\n  # Call 'byebug' anywhere in the code to stop execution and get a debugger console\r\n  gem 'byebug'\r\n\r\n  # Shim to load environment variables from .env into ENV in development. Read more: https://github.com/bkeepers/dotenv\r\n  gem 'dotenv-rails'\r\n\r\n  # Letter opener: https://github.com/ryanb/letter_opener\r\n  gem 'letter_opener', :group => :development\r\n\r\n  # Headless phantomjs(chrome based browser) for javascrip testing\r\n  gem 'poltergeist', :require => false\r\n\r\n  # Ruby Pry, debug ruby https://github.com/deivid-rodriguez/pry-byebug\r\n  gem 'pry-byebug'\r\n\r\n  # Static syle checking https://github.com/bbatsov/rubocop\r\n  # version 0.33.0 is causing issues -> when running autocomplete it find multiple infinite loops\r\n  # Untill we solve that problem, we'll go back to the last stable version.\r\n  gem 'rubocop', '0.32.1', :require => false\r\n\r\n  # Optional code coverage\r\n  gem 'simplecov', :require => false\r\n\r\n  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring\r\n  gem 'spring'\r\n\r\n  # Javascript testing https://github.com/modeset/teaspoon\r\n  gem 'teaspoon'\r\n  gem 'teaspoon-mocha'\r\nend\r\n\r\ngroup :test do\r\n  # Use webmock for integration testing.  Read more: https://github.com/bblimke/webmock\r\n  gem 'webmock'\r\n  gem 'mocha'\r\nend"}}