Skip to content

Fix team invitation 500s - WIP-331 #173

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

Merged
merged 1 commit into from
Aug 14, 2014

Conversation

Mileshosky
Copy link
Contributor

Work for: https://assembly.com/coderwall/wips/331

  • Fix team invitation 500
  • Add team members partial
  • Add controller + request specs for invitation page.


get :show, id: team.id
expect(response).to render_template("invitations/show")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you test for the instance variables if they are correctly assigned too ?

@Mileshosky
Copy link
Contributor Author

I'll add the expectations for controller instance vars real quick

@Mileshosky
Copy link
Contributor Author

Controller specs updated with checks for instance var, commit squashed. Should be good to go

=link_to('Stay with this team', accept_team_path(@team, :r => params[:r]), :class => 'button stay')
-else
=link_to('Join this team', accept_team_path(@team, :r => params[:r]), :class => 'join')
= render partial: "invitations/team_members", locals: {team: @team }
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you use the new syntax

= render 'invitations/team_members' , team: @team 

Copy link
Contributor

Choose a reason for hiding this comment

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

It's not important enough to warrant waiting. There's a lot of legacy syntax that we'll get to eventually.

@seuros
Copy link
Contributor

seuros commented Aug 14, 2014

LGTM!

just3ws added a commit that referenced this pull request Aug 14, 2014
Fix team invitation 500s - WIP-331
@just3ws just3ws merged commit 7def029 into coderwall:master Aug 14, 2014
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.

3 participants