validates uniqueness of username 😭

This commit is contained in:
Juanjo Bazán
2015-09-04 23:15:41 +02:00
parent ded656837e
commit 3a7a8f13f5
4 changed files with 7 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ feature 'Comments' do
expect(page).to have_css('.comment', count: 3)
comment = Comment.first
comment = Comment.last
within first('.comment') do
expect(page).to have_content comment.user.name
expect(page).to have_content time_ago_in_words(comment.created_at)