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
This works as expected on my local machine but fails in Circle CI with:
NoMethodError:
undefined method `new_company_path' for #<#<Class:0x00007f0ce1116710>:0x00007f0ce5926f28>
Did you mean? new_company_url
Is there a reason this would fail in Circle CI but not locally? This is the only spec out of about 150 that is failing, so I'm not inclined to think it's a general configuration issue.
For full context here is the whole spec. Is it because there isn't a view context yet, with nothing yet rendered? If so why does this work locally but not on CCI?
describe'Contact Details Panel'dospecify'errors show where they belong when the data is bad'docompany=create:companyvisitcompany.decorate.h.new_company_pathfind('.sticky-entity-header .btn',text: /save/i).clickexpect_async_user_message("couldn't be saved",:danger)expect(find('.help-block.warning-for-company-name').text).toinclude("can't be blank")endend
The text was updated successfully, but these errors were encountered:
Does that feature send out an email before this failure? We are seeing a similar issue and this seems to happen because an email is sent out first. This causes the view context to switch to the Mailer, but it does not appear to switch back to the controller. This means that the view context is now used on a controller context, leading to this error (because Mailers only have fully qualified URLs).
@graaff we are also seeing an error when when using Draper after ActionMailer where Draper can no longer find methods defined in helpers. Did you end up with any fix or work-around?
For anyone else running into this a workaround is to include the missing helper(s) in your ApplicationMailer so they're available to Draper, etc. even after ActionMailer switches the view context.
benlieb
changed the title
Path Helpers Failing on Circle CI (feature spec)
Path Helpers Failing when email is sent before call (CCI)
Sep 21, 2021
I have a feature spec that calls
visit company.decorate.h.new_company_path
This works as expected on my local machine but fails in Circle CI with:
Is there a reason this would fail in Circle CI but not locally? This is the only spec out of about 150 that is failing, so I'm not inclined to think it's a general configuration issue.
For full context here is the whole spec. Is it because there isn't a view context yet, with nothing yet rendered? If so why does this work locally but not on CCI?
The text was updated successfully, but these errors were encountered: