debian-mirror-gitlab/spec/support/shared_examples/services/dependency_proxy_settings_shared_examples.rb
2021-11-18 22:05:49 +05:30

9 lines
303 B
Ruby

# frozen_string_literal: true
RSpec.shared_examples 'updating the dependency proxy group settings attributes' do |from: {}, to: {}|
it 'updates the dependency proxy settings' do
expect { subject }
.to change { group_settings.reload.enabled }.from(from[:enabled]).to(to[:enabled])
end
end