Sha256: 10485f0605436868e5017a0334b9ee04bef63c37f5db10cf5413823844eb85ed

Contents?: true

Size: 854 Bytes

Versions: 70

Compression:

Stored size: 854 Bytes

Contents

RSpec::Matchers.define :have_custom_response_error_code do |error_code|
  match do |cloudfront_distribution|
    cloudfront_distribution.has_custom_response_error_code?(error_code,
                                                            response_page_path: @response_page_path,
                                                            response_code: @response_code,
                                                            error_caching_min_ttl: @error_caching_min_ttl
                                                           )
  end

  chain :response_page_path do |response_page_path|
    @response_page_path = response_page_path
  end

  chain :response_code do |response_code|
    @response_code = response_code
  end

  chain :error_caching_min_ttl do |error_caching_min_ttl|
    @error_caching_min_ttl = error_caching_min_ttl
  end
end

Version data entries

70 entries across 70 versions & 3 rubygems

Version Path
awspec-1.25.1 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.25.0 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.24.4 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.24.3 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.24.2 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.24.1 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.24.0 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.23.0 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.22.1 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.22.0 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.21.1 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.21.0 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.20.0 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.19.2 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.19.1 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.19.0 lib/awspec/matcher/have_custom_response_error_code.rb
cthiesfork-awspec-1.2.4 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.18.6 lib/awspec/matcher/have_custom_response_error_code.rb