This needs to be done for all plugins as well, but it's more complicated
there because several plugins have their own test_helper (which will
also load the core test_helper).
require_relative "../test_helper"
# tests for Array core extension. See lib/noosfero/core_ext/array.rb
class StringCoreExtTest < ActiveSupport::TestCase
should 'allow uniq by a block' do
array = [0,1,2,3,4,5,6]
assert_equal [0,1], array.uniq_by {|number| number%2 }
end
end