From 38477c9bfdd7f7e254b4dc9da2c2adc20e045b1b Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 18 Aug 2019 16:15:47 +1200 Subject: [PATCH] Wrap admin in context --- spec/features/admin/admin_spec.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/spec/features/admin/admin_spec.rb b/spec/features/admin/admin_spec.rb index 94c7a8dca..cbd83bf53 100644 --- a/spec/features/admin/admin_spec.rb +++ b/spec/features/admin/admin_spec.rb @@ -1,9 +1,11 @@ require 'rails_helper' describe "forums", js: true do - include_context 'signed in admin' - it "navigating to forum admin with js" do - visit admin_path - Percy.snapshot(page, name: 'Admin page') + context 'signed in admin' do + include_context 'signed in admin' + it "navigating to forum admin with js" do + visit admin_path + Percy.snapshot(page, name: 'Admin page') + end end end