mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 23:24:10 +08:00
correct polls spec
This commit is contained in:
@ -4,8 +4,13 @@ describe PostsController do
|
||||
let!(:user) { log_in }
|
||||
let!(:title) { "Testing Poll Plugin" }
|
||||
|
||||
before do
|
||||
SiteSetting.min_first_post_typing_time = 0
|
||||
end
|
||||
|
||||
describe "polls" do
|
||||
|
||||
|
||||
it "works" do
|
||||
xhr :post, :create, { title: title, raw: "[poll]\n- A\n- B\n[/poll]" }
|
||||
expect(response).to be_success
|
||||
|
Reference in New Issue
Block a user