require 'test_helper'

class StringTest < ActiveSupport::TestCase
  test 'should remove non-digits' do
    string = String.new("1a2s3d4f&$!-.()")
    assert_equal string.digits_only, "1234"
  end
end
