-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Add documentation and feature test on headers setup in controller spec #2229
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good I mostly have grammatical tweaks here, might have to preview it on relish to check it renders ok
@JonRowe I don't have any Relish credentials for the staging env. I tried: $ relish push rspec-staging/rspec-rails |
Aha turns out neither do ! @myronmarston / @penelopezone ? |
I don't have access to rspec-staging/rspec-rails, either: I went ahead and granted @JonRowe access to the other rspec-staging projects, though. @benoittgt I tried granting you access but relish tells me there's no user with the email address I have for you. I trust @JonRowe can grant you access to the various projects when you work out what email address you use for your relish user. BTW, bear in mind that there's nothing special about Anyhow, un-subbing from this thread. Hard for me to find time to work on things like this these days. |
d355486
to
15a5e78
Compare
15a5e78
to
5234861
Compare
Thanks Myron (not @'d so he's not pinged but if he reads this, thank you!) @benoittgt it seems there is no staging project for rspec-rails, @mattwynne are you able to help here? I know new projects are turned off which might be why I can't create a staging project for rspec-rails? |
If new projects are turned off I'd forgotten about that. I thought we'd just disabled sign-ups. If that's really the case I can probably do something for you via the rails console. What exactly do you need done? |
@mattwynne well I can't run |
be4e2c1
to
fdd97dd
Compare
@JonRowe that's odd, it works for me (with a different org / project). Do you see an error? |
It tells me that I'm not a collaborator on the organisation, which I am? and there appears to be no project there, I guess its possible theres an empty one someone created? |
@mattwynne Did you have a chance to look at this? |
Thanks for the nudge @pirj. @JonRowe I checked in the console. I think the problem was that you weren't, in fact, a member of the I've added you as a member of the org now @JonRowe so can you try again? |
Yep that works, thanks @mattwynne! @benoittgt what is your relish username or email? |
Oups sorry. I don't have any, and registrations are close. If I can have an account with |
Thanks @mattwynne for the invit. Sadly when I click on the link I get redirected to this page http://relishapp.com/users/sign_up (I have extra param with |
Gah. I created you an account with a random password @benoittgt. Can you try using the password reset password form now? |
Thanks @mattwynne. I just did it. @JonRowe you should be able to find me. Username "benoit", email "benoit @t hopsandfork dot com" |
Great stuff, and props to you and the team for maintaining this exemplary suite of living docs for so many years! |
Done @benoittgt, you should have access to them all |
Not super happy with how sentences are splited. See:
But otherwise I think it could be merged. |
Looks like a bug - a newline is turned into a |
@benoittgt @pirj thats normal, its just how relish renders, the lines in features need to be longer to allow them to wrap on relish IIRC |
Awesome, let's merge then and address wrapped lines later. |
@pirj might as well fix it here as this PR is a documentation PR... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks.
We recommend you to switch to request specs instead of controller specs if you want to set | ||
headers in your call. | ||
If you still want to set headers in controller specs, you can use `request.headers` as | ||
mentioned bellow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe also keep it as once sentence per line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about it but the lines were pretty long in code. I push to staging then cut the line in the core where Relish was wrapping lines. :)
I'm taking care of CI failures - |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, some grammatical tweaks having seen it on the HTML page.
I just pushed on staging. Looks better with your review @JonRowe |
af44f0a
to
fd14c8a
Compare
Hello
This is the answer to #1655 (comment)
Feel free to comment on any wording issue. I will be happy to do correction.
I will be very happy to close this old issue.
Close: #1655