File: string_extensions_configuration_test.rb

package info (click to toggle)
ruby-stringex 2.8.5-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,232 kB
  • sloc: ruby: 3,745; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# encoding: UTF-8

require 'test_helper'
require 'stringex'

class StringExtensionsConfigurationTest < Test::Unit::TestCase
  def teardown
    Stringex::StringExtensions.unconfigure!
  end

  def test_can_set_base_settings
    Stringex::StringExtensions.configure do |c|
      c.replace_whitespace_with = "~"
    end
    assert_equal "foo~bar", "foo bar".to_url
  end
end