Sha256: c7414e1c19d70150d11e34cc54cda7f24bba6bef86f2b8f38c7ecf671ad02833
Contents?: true
Size: 390 Bytes
Versions: 35
Compression:
Stored size: 390 Bytes
Contents
require File.join(File.dirname(__FILE__), '/../../test_helper') class HashTest < ActiveSupport::TestCase def test_except x = {:a => 1, :b => 2} assert_equal({:b => 2}, x.except(:a)) assert_equal({:a => 1, :b => 2}, x) end def test_extract! x = {:a => 1, :b => 2} y = x.extract!(:b, :c) assert_equal({:a => 1}, x) assert_equal({:b => 2}, y) end end
Version data entries
35 entries across 35 versions & 11 rubygems