mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Live update poll votes.
This commit is contained in:
@@ -31,6 +31,8 @@ describe PollPlugin::PollController, type: :controller do
|
||||
end
|
||||
|
||||
it "should save votes correctly" do
|
||||
MessageBus.expects(:publish).times(4)
|
||||
|
||||
log_in_user user1
|
||||
xhr :put, :vote, post_id: post.id, option: "Chitoge", use_route: :poll
|
||||
PollPlugin::Poll.new(post).get_vote(user1).should eq("Chitoge")
|
||||
|
||||
Reference in New Issue
Block a user