correct polls spec
This commit is contained in:
parent
a3c6cd7b38
commit
d16de4a0a1
|
@ -4,8 +4,13 @@ describe PostsController do
|
||||||
let!(:user) { log_in }
|
let!(:user) { log_in }
|
||||||
let!(:title) { "Testing Poll Plugin" }
|
let!(:title) { "Testing Poll Plugin" }
|
||||||
|
|
||||||
|
before do
|
||||||
|
SiteSetting.min_first_post_typing_time = 0
|
||||||
|
end
|
||||||
|
|
||||||
describe "polls" do
|
describe "polls" do
|
||||||
|
|
||||||
|
|
||||||
it "works" do
|
it "works" do
|
||||||
xhr :post, :create, { title: title, raw: "[poll]\n- A\n- B\n[/poll]" }
|
xhr :post, :create, { title: title, raw: "[poll]\n- A\n- B\n[/poll]" }
|
||||||
expect(response).to be_success
|
expect(response).to be_success
|
||||||
|
|
Loading…
Reference in New Issue