mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
Fix build.
This commit is contained in:
@ -105,7 +105,7 @@ describe PostsController do
|
||||
end
|
||||
|
||||
it "resets the votes" do
|
||||
DiscoursePoll::Poll.vote(post_id, "poll", ["5c24fc1df56d764b550ceae1b9319125"], user.id)
|
||||
DiscoursePoll::Poll.vote(post_id, "poll", ["5c24fc1df56d764b550ceae1b9319125"], user)
|
||||
xhr :put, :update, { id: post_id, post: { raw: "[poll]\n- A\n- B\n- C\n[/poll]" } }
|
||||
expect(response).to be_success
|
||||
json = ::JSON.parse(response.body)
|
||||
@ -156,7 +156,7 @@ describe PostsController do
|
||||
describe "with at least one vote" do
|
||||
|
||||
before do
|
||||
DiscoursePoll::Poll.vote(post_id, "poll", ["5c24fc1df56d764b550ceae1b9319125"], user.id)
|
||||
DiscoursePoll::Poll.vote(post_id, "poll", ["5c24fc1df56d764b550ceae1b9319125"], user)
|
||||
end
|
||||
|
||||
it "OP cannot change the options" do
|
||||
|
Reference in New Issue
Block a user