# File tests/helpers/core_ext/array_test.rb, line 10 def test_expand_opts! assert_equal true, [].respond_to?(:"expand_opts!") a = [1,2,3] a.expand_opts!(:test => 1) assert_equal Hash, a.last.class end
# File tests/helpers/core_ext/array_test.rb, line 17 def test_extract_opts! assert_equal true, [].respond_to?(:"extract_opts!") a = [1,2,3, { :test => 1}] a.extract_opts! assert_equal [1,2,3], a end