Sha256: 6cc4f62f5179c90cf01701aa1dc26962ed741b31bf2d4efdd677e16376540a84

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

require 'spec_helper'

describe ActiveSupport::OrderedHash do
  context "#to_yaml" do
    subject do
      o = ActiveSupport::OrderedHash.new
      o[:one] = 1
      o[:two] = 2
      o
    end

    it "converts to yaml" do
      subject.to_yaml.should == "--- !map:ActiveSupport::OrderedHash \n:one: 1\n:two: 2\n"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sc-core-ext-1.1.1 spec/sc-core-ext/active_support/ordered_hash_spec.rb