blob: 3b73252709c2717841bca28a42fef479a3dbd121 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::ActionCable::RequestStoreCallbacks do
describe '.wrapper' do
it 'enables RequestStore in the inner block' do
expect(RequestStore.active?).to eq(false)
described_class.wrapper.call(
nil,
lambda do
expect(RequestStore.active?).to eq(true)
end
)
expect(RequestStore.active?).to eq(false)
end
end
end
|