Skip to content

Commit

Permalink
Fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
atd committed Jun 8, 2011
1 parent dc09303 commit f80a178
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/models/tie_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@

count = receiver.follower_count

follower_relation = sender.
relation_customs.
joins(:permissions).
merge(Permission.follow).
first

Tie.create :sender_id => sender.actor_id,
:receiver_id => receiver.actor_id,
:relation_id => sender.relation_customs.sort.first.id
:relation_id => follower_relation.id

receiver.reload.follower_count.should eq(count + 1)
end
Expand Down

0 comments on commit f80a178

Please sign in to comment.