You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like in 3.4 append_javascript_pack_tag is being prefixed by Shakapacker::Helper
1) Shakapacker::Helper #append_javascript_pack_tag raises an error if called after calling #javascript_pack_tag
Failure/Error:
expect {
javascript_pack_tag("application")
append_javascript_pack_tag("bootstrap", defer: false)
}.to raise_error(expected_error_message)
expected Exception with "You can only call append_javascript_pack_tag before javascript_pack_tag helper. Please refer to http..._javascript_pack_tag-prepend_javascript_pack_tag-and-append_stylesheet_pack_tag for the usage guide",
got #<RuntimeError: You can only call Shakapacker::Helper#append_javascript_pack_tag before javascript_pa..._javascript_pack_tag-prepend_javascript_pack_tag-and-append_stylesheet_pack_tag for the usage guide> with backtrace:
# ./lib/shakapacker/helper.rb:198:in 'Shakapacker::Helper#update_javascript_pack_tag_queue'
# ./lib/shakapacker/helper.rb:183:in 'Shakapacker::Helper#append_javascript_pack_tag'
# ./spec/shakapacker/helper_spec.rb:133:in 'block (3 levels) in <module:Behavior>'
# ./spec/shakapacker/helper_spec.rb:134:in 'block (2 levels) in <module:Behavior>'
The text was updated successfully, but these errors were encountered:
Looks like in 3.4
append_javascript_pack_tag
is being prefixed byShakapacker::Helper
The text was updated successfully, but these errors were encountered: