fixes specs

This commit is contained in:
rgarcia
2015-09-14 21:25:05 +02:00
parent eea3b0922e
commit b5de9830ec
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ module VotesHelper
end
def voted_for?(votes, votable)
return false unless votes[votable.id]
votes[votable.id]
end
end

View File

@@ -14,7 +14,7 @@ describe VotesHelper do
proposal = create(:proposal)
votes = {proposal.id => nil}
expect(voted_for?(votes, proposal)).to eq(false)
expect(voted_for?(votes, proposal)).to eq(nil)
end
end