Unify create comments specs
This commit is contained in:
@@ -10,19 +10,6 @@ describe "Commenting legislation questions" do
|
||||
it_behaves_like "flaggable", :legislation_question_comment
|
||||
end
|
||||
|
||||
scenario "Create" do
|
||||
login_as(user)
|
||||
visit legislation_process_question_path(question.process, question)
|
||||
|
||||
fill_in "Leave your answer", with: "Have you thought about...?"
|
||||
click_button "Publish answer"
|
||||
|
||||
within "#comments" do
|
||||
expect(page).to have_content "Have you thought about...?"
|
||||
expect(page).to have_content "(1)"
|
||||
end
|
||||
end
|
||||
|
||||
scenario "Reply" do
|
||||
citizen = create(:user, username: "Ana")
|
||||
manuela = create(:user, :level_two, username: "Manuela")
|
||||
|
||||
Reference in New Issue
Block a user