From f2b385bd5e451501ebb71c7aa55f840f74b8d180 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 16 Aug 2020 15:31:03 +1200 Subject: [PATCH] Help view spec find the correct template --- spec/views/crops/index.html.haml_spec.rb | 2 +- spec/views/harvests/index.html.haml_spec.rb | 2 +- spec/views/plantings/index.html.haml_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/views/crops/index.html.haml_spec.rb b/spec/views/crops/index.html.haml_spec.rb index db69f9132..ac57d87f7 100644 --- a/spec/views/crops/index.html.haml_spec.rb +++ b/spec/views/crops/index.html.haml_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe "crops/index" do +describe "crops/index.html.haml" do before do controller.stub(:current_user) { nil } page = 1 diff --git a/spec/views/harvests/index.html.haml_spec.rb b/spec/views/harvests/index.html.haml_spec.rb index 73c2a1fe2..dc2821e77 100644 --- a/spec/views/harvests/index.html.haml_spec.rb +++ b/spec/views/harvests/index.html.haml_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe "harvests/index" do +describe "harvests/index.html.haml" do before do controller.stub(:current_user) { nil } @member = FactoryBot.create(:member) diff --git a/spec/views/plantings/index.html.haml_spec.rb b/spec/views/plantings/index.html.haml_spec.rb index f2f29f556..3a69a9bc2 100644 --- a/spec/views/plantings/index.html.haml_spec.rb +++ b/spec/views/plantings/index.html.haml_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe "plantings/index" do +describe "plantings/index.html.haml" do let(:member) { FactoryBot.create(:member) } let(:garden) { FactoryBot.create(:garden, owner: member) } let(:tomato) { FactoryBot.create(:tomato, name: 'tomato') }