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
cthiesfork-awspec-1.2.2 lib/awspec/matcher/have_custom_response_error_code.rb
cthiesfork-awspec-1.2.1 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.18.5 lib/awspec/matcher/have_custom_response_error_code.rb
cthiesfork-awspec-1.2.0 lib/awspec/matcher/have_custom_response_error_code.rb
cthiesfork-awspec-1.1.0 lib/awspec/matcher/have_custom_response_error_code.rb
cthiesfork-awspec-1.0.0 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.18.4 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.18.3 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.18.2 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.18.1 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.18.0 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.17.4 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.17.3 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.17.2 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.17.1 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.17.0 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.16.1 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.16.0 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.15.3 lib/awspec/matcher/have_custom_response_error_code.rb
awspec-1.15.2 lib/awspec/matcher/have_custom_response_error_code.rb