Sha256: ceb7d648c5ef8a5a5e280c05cc0115d7fad0ffb6b2fe4d280c5bece37d879775

Contents?: true

Size: 817 Bytes

Versions: 168

Compression:

Stored size: 817 Bytes

Contents

RSpec::Matchers.define :have_record_set do |name|
  match do |hosted_zone|
    hosted_zone.has_record_set?(name, @type, @value, @options)
  end

  %w(soa a txt ns cname mx ptr srv spf aaaa).each do |type|
    chain type do |value|
      @type = type
      @value = value
      @options = {} if @options.nil?
    end
  end

  chain :alias do |dns_name, hosted_zone_id|
    @type = 'a'
    @options = {} if @options.nil?
    @options[:alias_dns_name] = dns_name
    @options[:alias_hosted_zone_id] = hosted_zone_id
  end

  chain :aaaa_alias do |dns_name, hosted_zone_id|
    @type = 'aaaa'
    @options = {} if @options.nil?
    @options[:alias_dns_name] = dns_name
    @options[:alias_hosted_zone_id] = hosted_zone_id
  end

  chain :ttl do |ttl|
    @options = {} if @options.nil?
    @options[:ttl] = ttl
  end
end

Version data entries

168 entries across 168 versions & 2 rubygems

Version Path
awspec-0.87.1 lib/awspec/matcher/have_record_set.rb
awspec-0.87.0 lib/awspec/matcher/have_record_set.rb
awspec-0.86.0 lib/awspec/matcher/have_record_set.rb
cmonson_2ndwatch_awspec-0.85.4 lib/awspec/matcher/have_record_set.rb
awspec-0.85.3 lib/awspec/matcher/have_record_set.rb
cmonson_2ndwatch_awspec-0.85.3 lib/awspec/matcher/have_record_set.rb
awspec-0.85.2 lib/awspec/matcher/have_record_set.rb
awspec-0.85.1 lib/awspec/matcher/have_record_set.rb
awspec-0.85.0 lib/awspec/matcher/have_record_set.rb
awspec-0.84.1 lib/awspec/matcher/have_record_set.rb
awspec-0.84.0 lib/awspec/matcher/have_record_set.rb
awspec-0.83.0 lib/awspec/matcher/have_record_set.rb
awspec-0.82.3 lib/awspec/matcher/have_record_set.rb
awspec-0.82.2 lib/awspec/matcher/have_record_set.rb
awspec-0.82.1 lib/awspec/matcher/have_record_set.rb
awspec-0.82.0 lib/awspec/matcher/have_record_set.rb
awspec-0.81.1 lib/awspec/matcher/have_record_set.rb
awspec-0.81.0 lib/awspec/matcher/have_record_set.rb
awspec-0.80.1 lib/awspec/matcher/have_record_set.rb
awspec-0.80.0 lib/awspec/matcher/have_record_set.rb