Fix broken specs
This commit is contained in:
@@ -125,7 +125,7 @@ feature 'Admin poll questions' do
|
|||||||
{ },
|
{ },
|
||||||
"documentable_fill_new_valid_poll_question",
|
"documentable_fill_new_valid_poll_question",
|
||||||
"Save",
|
"Save",
|
||||||
"Changes saved"
|
"Star Wars: Episode IV - A New Hope"
|
||||||
|
|
||||||
it_behaves_like "nested documentable",
|
it_behaves_like "nested documentable",
|
||||||
"administrator",
|
"administrator",
|
||||||
|
|||||||
@@ -320,16 +320,7 @@ def documentable_fill_new_valid_budget_investment
|
|||||||
end
|
end
|
||||||
|
|
||||||
def documentable_fill_new_valid_poll_question
|
def documentable_fill_new_valid_poll_question
|
||||||
title = "Star Wars: Episode IV - A New Hope"
|
|
||||||
description = %{
|
|
||||||
During the battle, Rebel spies managed to steal secret plans to the Empire's ultimate weapon, the DEATH STAR, an armored space station
|
|
||||||
with enough power to destroy an entire planet.
|
|
||||||
Pursued by the Empire's sinister agents, Princess Leia races home aboard her starship, custodian of the stolen plans that can save her
|
|
||||||
people and restore freedom to the galaxy....
|
|
||||||
}
|
|
||||||
|
|
||||||
page.select documentable.poll.name, from: 'poll_question_poll_id'
|
page.select documentable.poll.name, from: 'poll_question_poll_id'
|
||||||
fill_in 'poll_question_title', with: title
|
fill_in 'poll_question_title', with: "Star Wars: Episode IV - A New Hope"
|
||||||
fill_in_ckeditor "poll_question_description", with: description
|
fill_in_ckeditor "poll_question_description", with: "Description"
|
||||||
click_button 'Save'
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user