Commit eea81d74 authored by jejacks0n's avatar jejacks0n

Finish up pending spec for published experiments

parent 5eccf5b3
......@@ -160,18 +160,17 @@ RSpec.describe API::Experiments do
end
it 'publishes into a collection of experiments that have been run in the request' do
pending 'requires gitlab-experiment >= 0.5.4 -- resolved in a follow up MR'
get api('/experiments', user)
expect(ApplicationExperiment.published_experiments).to eq(
'null_hypothesis' => {
expect(RequestStore).to receive(:clear!).and_wrap_original do |clear|
expect(ApplicationExperiment.published_experiments['null_hypothesis']).to include(
excluded: false,
experiment: 'null_hypothesis',
key: 'abc123',
variant: 'candidate'
}
)
)
clear.call
end
get api('/experiments', user)
end
end
end
......
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