Sha256: e57eca3b058775b8dbe6a029ed9ea126ceaac1bde5a62dc568d3409719c33304

Contents?: true

Size: 684 Bytes

Versions: 165

Compression:

Stored size: 684 Bytes

Contents

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

165 entries across 165 versions & 4 rubygems

Version Path
cthiesfork-awspec-1.2.2 lib/awspec/matcher/have_origin.rb
cthiesfork-awspec-1.2.1 lib/awspec/matcher/have_origin.rb
awspec-1.18.5 lib/awspec/matcher/have_origin.rb
cthiesfork-awspec-1.2.0 lib/awspec/matcher/have_origin.rb
cthiesfork-awspec-1.1.0 lib/awspec/matcher/have_origin.rb
cthiesfork-awspec-1.0.0 lib/awspec/matcher/have_origin.rb
awspec-1.18.4 lib/awspec/matcher/have_origin.rb
awspec-1.18.3 lib/awspec/matcher/have_origin.rb
awspec-1.18.2 lib/awspec/matcher/have_origin.rb
awspec-1.18.1 lib/awspec/matcher/have_origin.rb
awspec-1.18.0 lib/awspec/matcher/have_origin.rb
awspec-1.17.4 lib/awspec/matcher/have_origin.rb
awspec-1.17.3 lib/awspec/matcher/have_origin.rb
awspec-1.17.2 lib/awspec/matcher/have_origin.rb
awspec-1.17.1 lib/awspec/matcher/have_origin.rb
awspec-1.17.0 lib/awspec/matcher/have_origin.rb
awspec-1.16.1 lib/awspec/matcher/have_origin.rb
awspec-1.16.0 lib/awspec/matcher/have_origin.rb
awspec-1.15.3 lib/awspec/matcher/have_origin.rb
awspec-1.15.2 lib/awspec/matcher/have_origin.rb