Modifies test for not logged users

This commit is contained in:
Alberto Garcia Cabeza
2015-08-21 19:03:43 +02:00
parent ff6285d114
commit fbc1817f81
3 changed files with 1 additions and 4 deletions

View File

@@ -33,7 +33,6 @@ en:
index:
create_debate: Create a debate
showing: You are seeing debates
tag: with the topic
filter_news: the newest
filter_votes: the most voted
filter_rated: the best rated
@@ -79,7 +78,6 @@ en:
zero: No comments
one: 1 Comment
other: "%{count} Comments"
leave_comment: Write a comment
login_to_comment: "You need to %{signin} or %{signup} to comment."
edit_debate_link: Edit
share: Share

View File

@@ -78,7 +78,6 @@ es:
zero: Sin comentarios
one: 1 Comentario
other: "%{count} Comentarios"
leave_comment: Deja tu comentario
login_to_comment: "Necesitas %{signin} o %{signup} para comentar."
edit_debate_link: Editar
share: Compartir

View File

@@ -43,7 +43,7 @@ feature 'Comments' do
create(:comment, commentable: debate)
visit debate_path(debate)
expect(page).to have_content 'Log in to participate'
expect(page).to have_content 'You need to sign in or sign up to comment'
within('#comments') do
expect(page).to_not have_content 'Write a comment'
expect(page).to_not have_content 'Reply'