I'm not sure if this is a problem with rails or with Appraisal, but it's caused an issue on Administrate. I made a repo to reproduce based off of the rails issue template. Here's the most concise summary I've made so far:
The latter cannot handle an array as an argument, hence the spec failures, but it seems like it must be some interaction of Appraisal and the rails auto loader that is causing the wrong method lookup, because it doesn't happen when we are running 4.2 outside of Appraisal.
I'm going to close this as it's quite old and the original issue which prompted it has long gone and been solved. We can look at it again if it's still an issue.
I'm not sure if this is a problem with rails or with Appraisal, but it's caused an issue on Administrate. I made a repo to reproduce based off of the rails issue template. Here's the most concise summary I've made so far:
In 5.0 method(:url_for).source_location returns
while in 4.2 it returns
The latter cannot handle an array as an argument, hence the spec failures, but it seems like it must be some interaction of Appraisal and the rails auto loader that is causing the wrong method lookup, because it doesn't happen when we are running 4.2 outside of Appraisal.