From aa45c39d3e4a60919f18a5ee43070e384634d9d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 10 Dec 2018 12:59:03 +0100 Subject: [PATCH] Remove trailing whitespace --- app/views/welcome/index.html.erb | 4 ++-- spec/features/home_spec.rb | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb index b8ee72235..6e7b0ef28 100644 --- a/app/views/welcome/index.html.erb +++ b/app/views/welcome/index.html.erb @@ -20,11 +20,11 @@
- <% if @cards.any? %> + <% if @cards.any? %>
<%= render "cards" %>
- <% end %> + <% end %>
<%= render "processes" %> diff --git a/spec/features/home_spec.rb b/spec/features/home_spec.rb index 2d889f233..1d60684fd 100644 --- a/spec/features/home_spec.rb +++ b/spec/features/home_spec.rb @@ -143,8 +143,7 @@ feature "Home" do "/html/body/div[@class='wrapper ']/comment()[contains(.,'ie-callout')]" end end - - + scenario 'if there are cards, the "featured" title will render' do card = create(:widget_card, title: "Card text", @@ -152,15 +151,15 @@ feature "Home" do link_text: "Link text", link_url: "consul.dev" ) - + visit root_path expect(page).to have_css(".title", text: "Featured") end - + scenario 'if there are no cards, the "featured" title will not render' do visit root_path - + expect(page).not_to have_css(".title", text: "Featured") end end