Commit ee1dc83d authored by peterhegman's avatar peterhegman

Use `context` instead of `describe` in view spec

parent f89e1005
......@@ -2,13 +2,13 @@
require 'spec_helper'
describe 'admin/users/_user' do
describe 'admin/users/_user.html.haml' do
before do
allow(view).to receive(:user).and_return(user)
end
describe 'internal users' do
describe 'when showing a `Ghost User`' do
context 'internal users' do
context 'when showing a `Ghost User`' do
let(:user) { create(:user, ghost: true) }
it 'does not render action buttons' do
......@@ -18,8 +18,8 @@ describe 'admin/users/_user' do
end
end
describe 'when showing a `Bot User`' do
let(:user) { create(:user, bot_type: :alert_bot) }
context 'when showing a `Bot User`' do
let(:user) { create(:user, user_type: :alert_bot) }
it 'does not render action buttons' do
render
......@@ -29,7 +29,7 @@ describe 'admin/users/_user' do
end
end
describe 'when showing an external user' do
context 'when showing an external user' do
let(:user) { create(:user) }
it 'renders action buttons' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment