Welcome to mirror list, hosted at ThFree Co, Russian Federation.

widgetable_service_shared_examples.rb « work_items « shared_examples « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 491662d17d3a8886584d056f23728dc5f44647f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

RSpec.shared_examples_for 'work item widgetable service' do
  it 'executes callbacks for expected widgets' do
    supported_widgets.each do |widget|
      expect_next_instance_of(widget[:klass]) do |widget_instance|
        expect(widget_instance).to receive(widget[:callback]).with(params: widget[:params])
      end
    end

    service_execute
  end
end