correct polls spec

This commit is contained in:
Sam 2015-08-05 12:39:38 +10:00
parent a3c6cd7b38
commit d16de4a0a1
1 changed files with 5 additions and 0 deletions

View File

@ -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