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
Check if TestCase responds to the fixture_path setter #2349
Conversation
Do you think it is possible to add a test? |
I think so, will have a look tonight. |
Are you seeing an issue from this @koenpunt? I think this method is always available isn't it? |
Yeah I am, |
In that case we'd definitely like an integration spec for this so we can catch such problems in future 😂 |
@koenpunt, if you need any help feel free to ask. I will be happy to help you. |
Little bump on this one. Still available if you need help @koenpunt. |
Yes, sorry, just started a new job so didn't really had time to take a look at this again. Will try to get back to this ASAP. |
The existence of the getter doesn't mean there's also a setter
I've now added a test which I hoped was going to fail without my changes, but that isn't the case. Any pointers for what I can try to implement the test differently? |
After some further investigation I realised that I actually added the I've now changed my implementation to not modify That said, I still think the Should I create a test where I add the |
…ls 6.1 I had a similar problem to @koenpunt in rspec#2349 where `fixture_file_upload` stopped working. ``` NoMethodError: undefined method `file_fixture_path' for RSpec::Rails::FixtureFileUploadSupport::RailsFixtureFileWrapper:Class Did you mean? fixture_path # /actionpack/lib/action_dispatch/testing/test_process.rb:25:in `fixture_file_upload' # /rspec-rails-dd093928f021/lib/rspec/rails/fixture_file_upload_support.rb:5:in `fixture_file_upload' ``` In my case, it's because I'm on Rails 6.1 alpha. As of [these recent changes]( rails/rails#39086), `ActionController::TestCase` now needs access to `fixture_file_path` within `fixture_file_upload`. There's not currently any CI for Rails 6.1 (as it's not out yet) but I thought I would get a head start on things.
Closed by #2370 |
The existence of the getter doesn't mean there's also a setter, so this resulted in failures like the following: