PageRenderTime 76ms CodeModel.GetById 0ms RepoModel.GetById 1ms app.codeStats 0ms

/vendor/gems/facets-2.4.5/test/core/string/test_interpolate.rb

https://bitbucket.org/mediashelf/fedora-migrator
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
  1. # Test for facets/string/interpolate
  2. require 'facets/string/interpolate.rb'
  3. require 'test/unit'
  4. class TestStringInterpolate < Test::Unit::TestCase
  5. def test_interpolate
  6. a = 1
  7. assert_equal('this is 1', String.interpolate{ 'this is #{a}' })
  8. end
  9. end