Help view spec find the correct template

This commit is contained in:
Brenda Wallace
2020-08-16 15:31:03 +12:00
committed by Brenda Wallace
parent b1b2661682
commit f2b385bd5e
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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') }