Sha256: 50c81559189dcff659dd2de8e4bf155f941b22b0a374dbc2e79361c9fd977108

Contents?: true

Size: 675 Bytes

Versions: 14

Compression:

Stored size: 675 Bytes

Contents

# frozen_string_literal: true

RSpec::Matchers.define :have_origin do |origin_id|
  match do |cloudfront_distribution|
    cloudfront_distribution.has_origin?(origin_id,
                                        domain_name: @domain_name,
                                        origin_path: @origin_path,
                                        origin_access_identity: @origin_access_identity)
  end

  chain :domain_name do |domain_name|
    @domain_name = domain_name
  end

  chain :origin_path do |origin_path|
    @origin_path = origin_path
  end

  chain :origin_access_identity do |origin_access_identity|
    @origin_access_identity = origin_access_identity
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
awspec-1.32.0 lib/awspec/matcher/have_origin.rb
awspec-1.31.0 lib/awspec/matcher/have_origin.rb
awspec-1.30.0 lib/awspec/matcher/have_origin.rb
awspec-1.29.3 lib/awspec/matcher/have_origin.rb
awspec-1.29.2 lib/awspec/matcher/have_origin.rb
awspec-1.29.1 lib/awspec/matcher/have_origin.rb
awspec-1.29.0 lib/awspec/matcher/have_origin.rb
awspec-1.28.2 lib/awspec/matcher/have_origin.rb
awspec-1.28.1 lib/awspec/matcher/have_origin.rb
awspec-1.28.0 lib/awspec/matcher/have_origin.rb
awspec-1.27.1 lib/awspec/matcher/have_origin.rb
awspec-1.27.0 lib/awspec/matcher/have_origin.rb
awspec-1.26.0 lib/awspec/matcher/have_origin.rb
awspec-1.25.2 lib/awspec/matcher/have_origin.rb