Skip to content

Commit

Permalink
remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed Sep 25, 2014
1 parent a901d68 commit dd5872e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/controllers/users_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ def post_user
it 'filters by email' do
inviter = Fabricate(:user)
invitee = Fabricate(:user)
invite = Fabricate(
_invite = Fabricate(
:invite,
email: 'billybob@example.com',
invited_by: inviter,
Expand All @@ -732,7 +732,7 @@ def post_user
it 'filters by username' do
inviter = Fabricate(:user)
invitee = Fabricate(:user, username: 'billybob')
invite = Fabricate(
_invite = Fabricate(
:invite,
invited_by: inviter,
email: 'billybob@example.com',
Expand Down Expand Up @@ -803,7 +803,7 @@ def post_user
it 'does not return invites' do
user = log_in
inviter = Fabricate(:user)
invitee = Fabricate(:user)
_invitee = Fabricate(:user)
Fabricate(:invite, invited_by: inviter)
stub_guardian(user) do |guardian|
guardian.stubs(:can_see_invite_details?).
Expand All @@ -820,7 +820,7 @@ def post_user

context 'with redeemed invites' do
it 'returns invites' do
user = log_in
_user = log_in
inviter = Fabricate(:user)
invitee = Fabricate(:user)
invite = Fabricate(:invite, invited_by: inviter, user: invitee)
Expand Down

0 comments on commit dd5872e

Please sign in to comment.