Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `to_a' for Sprockets::Asset - Perfectly working teaspoon spec is not working with 4.0 #650

Open
thebravoman opened this issue Nov 6, 2019 · 0 comments

Comments

@thebravoman
Copy link

Expected behavior

Running a jasmine spec with teaspoon as I've done for this specs for the last two years.

Actual behavior

When running the specs with Sprockets 4

ActionView::Template::Error (undefined method `to_a' for #<Sprockets::Asset:0x00007f59b022fb58>
Did you mean?  to_s):
    1: <%= javascript_include_tag *@suite.spec_assets, debug: @suite.config.expand_assets, allow_non_precompiled: true %>
    2: <script type="text/javascript">
    3:   Teaspoon.onWindowLoad(Teaspoon.execute);
    4: </script>

System configuration

  • 4.0.0
  • 2.6.5

Example App (Reproduction) - THIS IS IMPORTANT YOUR ISSUE LIKELY WILL NOT BE RESOLVED WITHOUT THIS

Should I even try to provide an example app or it is expected that Sprocktes::Asset will not have a to_a method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant