provider/test_data/spec_formatter.rb
# Creates a YAML representation of the test data
# All keys will be sorted according to sort_by_manifest_key
Creates a YAML representation of the test data
All keys will be sorted according to sort_by_manifest_key
Creates a YAML representation of the test data All keys will be sorted according to sort_by_manifest_key
def to_yaml(opts = {})
        YAML.quick_emit(@block, opts) do |out|
          out.map(nil, to_yaml_style) do |map|
            @block.keys.sort_by { |k| sort_by_manifest_key(k) }
                  .each do |k|
              map.add(k, @block[k])
            end
          end
        end
      end
def to_yaml ( opts = { } ) YAML . quick_emit ( @block , opts ) do | out | out . map ( nil , to_yaml_style ) do | map | @block . keys . sort_by { | k | sort_by_manifest_key ( k ) } . each do | k | map . add ( k , @block [ k ] ) end end end end
Creates a YAML representation of the test data
All keys will be sorted according to sort_by_manifest_key
Creates a YAML representation of the test data All keys will be sorted according to sort_by_manifest_key
opts
<not_specific>