/vendor/gems/facets-2.4.5/test/core/string/test_interpolate.rb
Ruby | 16 lines | 8 code | 7 blank | 1 comment | 0 complexity | d4052d51ba9b71c44be800f791f661aa MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
- # Test for facets/string/interpolate
- require 'facets/string/interpolate.rb'
- require 'test/unit'
- class TestStringInterpolate < Test::Unit::TestCase
- def test_interpolate
- a = 1
- assert_equal('this is 1', String.interpolate{ 'this is #{a}' })
- end
- end