From fbc1817f8142fb93d19f6665a0b9b529d0413374 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Fri, 21 Aug 2015 19:03:43 +0200 Subject: [PATCH] Modifies test for not logged users --- config/locales/en.yml | 2 -- config/locales/es.yml | 1 - spec/features/comments_spec.rb | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 5618532f0..efa4bbebd 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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 diff --git a/config/locales/es.yml b/config/locales/es.yml index 66c483456..c66337ad1 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -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 diff --git a/spec/features/comments_spec.rb b/spec/features/comments_spec.rb index b820fffcd..1ff1d5cce 100644 --- a/spec/features/comments_spec.rb +++ b/spec/features/comments_spec.rb @@ -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'