Skip to content
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

follow_direct: Include rack.session.options #233

Merged
merged 4 commits into from
May 17, 2018

Conversation

markedmondson
Copy link
Contributor

Should resolve #231

@perlun perlun changed the title Include session options in request follow_direct: Include rack.session.options May 2, 2018
Copy link
Contributor

@perlun perlun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for a fine change! A suggestion regarding the implementation, but once that is in place I see no hindrance to merging this.

@@ -30,7 +30,7 @@ class FakeApp < Sinatra::Base

%i[get put post delete].each do |meth|
send(meth, '/redirected') do
additional_info = meth == :get ? ", session #{session}" : " using #{meth} with #{params}"
additional_info = meth == :get ? ", session #{session}#{request.session_options}" : " using #{meth} with #{params}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you change

", session #{session}#{request.session_options}"

to this instead, I think it would be more readable code:

", session #{session} with options #{request.session_options}"

@markedmondson
Copy link
Contributor Author

Thanks @perlun, change made to add " with options ": 0c5e57f

@markedmondson
Copy link
Contributor Author

@perlun anything I can do to help get this across the finish line? It's holding up a few gem updates for us. Thanks!

@jhubert
Copy link

jhubert commented May 10, 2018

@perlun Checking in on this as well. Happy to help if there's anything I can do... ?

@perlun perlun merged commit 03eb717 into rack:master May 17, 2018
@perlun
Copy link
Contributor

perlun commented May 17, 2018

There we go, merged @markedmondson and @jhubert - thanks for your help.

Please use the gem from GitHub for now (using the master branch) - I will try to release a new version of the gem also in the not-so-distant future.

@bwinter
Copy link

bwinter commented Jul 20, 2018

Hey @perlun - any idea when your going to get this into a release?

@markedmondson
Copy link
Contributor Author

Spooky. I had the exact same question (to myself) about 3 hours ago.

@bwinter
Copy link

bwinter commented Jul 20, 2018

Mind meld 🧠

@perlun
Copy link
Contributor

perlun commented Jul 22, 2018

@bwinter @markedmondson and others: 1.1.0 released for your pleasure: https://github.com/rack-test/rack-test/releases/tag/v1.1.0

@markedmondson
Copy link
Contributor Author

Thanks @perlun!

alex-damian-negru pushed a commit to alex-damian-negru/rack-test that referenced this pull request Apr 5, 2021
* Include session options in request

* Use consistent testing pattern

* Increase allowed ClassLength

* Add more description to the body output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible bug with sessions in follow_redirect!
4 participants