Merge pull request #3596 from consul/fix_admin_comments_test

Check the comment is present after commenting
This commit is contained in:
Javier Martín
2019-06-06 16:17:02 +02:00
committed by GitHub

View File

@@ -412,6 +412,10 @@ describe "Commenting Budget::Investments" do
check "comment-as-administrator-budget_investment_#{investment.id}"
click_button "Publish comment"
within "#comments" do
expect(page).to have_content "I am your Admin!"
end
visit admin_budget_budget_investment_path(investment.budget, investment)
within "#comments" do