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

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

module RenderedHelpers
  # Wraps the `rendered` in `expect` to make it the target of an expectation.
  # Designed to read nicely for one-liners.
  # rubocop:disable RSpec/VoidExpect
  def expect_rendered
    render
    expect(rendered)
  end
  # rubocop:enable RSpec/VoidExpect
end