Fix create comment on budget investment spec.

This commit is contained in:
taitus
2017-06-25 11:06:05 +02:00
parent 4613855df8
commit e0d11d6b2a

View File

@@ -166,9 +166,12 @@ feature 'Commenting Budget::Investments' do
fill_in "comment-body-budget_investment_#{investment.id}", with: 'Have you thought about...?'
click_button 'Publish comment'
within "#tab-comments-label" do
expect(page).to have_content 'Comments (1)'
end
within "#comments" do
expect(page).to have_content 'Have you thought about...?'
expect(page).to have_content 'Comments (1)'
end
end
@@ -489,4 +492,4 @@ feature 'Commenting Budget::Investments' do
end
end
end
end