mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-23 07:18:22 -04:00
Wrap admin in context
This commit is contained in:
1 parent
34b399cd8e
commit
38477c9bfd
1 file changed
+6
-4
@@ -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
|
||||
Reference in new issue
Block a user