From d36d5ff1e3be45ae4b11bcfae92189f7fb87199e Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Tue, 27 Oct 2020 10:49:10 +1300 Subject: [PATCH] mark test as javascript --- spec/views/crops/show.html.haml_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/views/crops/show.html.haml_spec.rb b/spec/views/crops/show.html.haml_spec.rb index 7df6b3b71..9bf69bed4 100644 --- a/spec/views/crops/show.html.haml_spec.rb +++ b/spec/views/crops/show.html.haml_spec.rb @@ -2,7 +2,8 @@ require 'rails_helper' -describe "crops/show" do +describe "crops/show", :js do + before do @crop = FactoryBot.create(:maize) @posts = [] @@ -44,4 +45,3 @@ describe "crops/show" do expect(rendered).to have_content "Harvested for" end end -