Erased extra empty HTML for comments without replies. Added .gitignore rules for Netbeans projects

Cambios para hacer commit:
	modificado:    .gitignore
	modificado:    app/assets/javascripts/comments.js.coffee
	modificado:    app/views/comments/_comment.html.erb
	modificado:    spec/features/comments/debates_spec.rb
This commit is contained in:
iagirre
2017-09-13 13:30:37 +02:00
parent a5b6620537
commit 1356ea217b
4 changed files with 11 additions and 0 deletions

View File

@@ -33,6 +33,10 @@ feature 'Commenting debates' do
expect(page).to have_content second_child.body
expect(page).to have_link "Go back to #{debate.title}", href: debate_path(debate)
expect(page).to have_selector("ul#comment_#{parent_comment.id}>li", count: 2)
expect(page).to have_selector("ul#comment_#{first_child.id}>li", count: 1)
expect(page).to have_selector("ul#comment_#{second_child.id}>li", count: 1)
end
scenario 'Collapsable comments', :js do