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

View File

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

View File

@@ -43,7 +43,7 @@ feature 'Comments' do
create(:comment, commentable: debate) create(:comment, commentable: debate)
visit debate_path(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 within('#comments') do
expect(page).to_not have_content 'Write a comment' expect(page).to_not have_content 'Write a comment'
expect(page).to_not have_content 'Reply' expect(page).to_not have_content 'Reply'