Skip to content

React Rails Testing #353

@tmoney100

Description

@tmoney100

I just updated to 1.3.0, ran rake test and got this error message:

ActionView::Template::Error: undefined method 'react_component' for nil:NilClass app/views/layouts/application.html.erb:30:in '_app_views_layouts_application_html_erb___3811361224884677630_70195218569900'

This 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.

I'm calling react_component in my application.html.erb file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions