-
Notifications
You must be signed in to change notification settings - Fork 920
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
Add config to StubSessionProxy in order to fix error when scope is used. #411
Conversation
bump |
Can you provide a failing test and a clear explanation of when this would be used? I haven't come across this issue through normal use, so I'm a little unfamiliar. |
@njakobsen Sure. Here is the failing spec to emulate my action (rebased as two commits). As I said, the main cause is the calling of config which is absent in the StubSessionProxy. This happens in #247 in different ways too. |
This is still happening when an after_save action is calling
|
Having this same issue, would love this to be merged. |
This PR has some conflicting changes. Happy to review it once all conflicts are resolved |
0f0f61a
to
e25aae6
Compare
@serggl Yay it passed the test. |
Hi @serggl could you review? Thanks |
…ed. (sunspot#411) * Add spec to show that StubSessionProxy is missing config * Add config to StubSessionProxy in order to fix error when scope is used.
Fix #247, where Sunspot is trying to access StubSessionProxy's config, but it does not exist. Add accessor to a default config to fix this.