Sha256: 1a9ee6cc4d102e05cf271fcefbc6e47ee9773405d0cf8faf6cadea4290686d7e

Contents?: true

Size: 430 Bytes

Versions: 24

Compression:

Stored size: 430 Bytes

Contents

require 'helper'
begin
  require 'ripper'
rescue LoadError
end

if defined?(Ripper) && RUBY_VERSION >= "2.0.0"
  describe Temple::Filters::StringSplitter do
    before do
      @filter = Temple::Filters::StringSplitter.new
    end

    it 'should split :dynamic with string literal' do
      @filter.call([:dynamic, '"static#{dynamic}"']
      ).should.equal [:multi, [:static, 'static'], [:dynamic, 'dynamic']]
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
brakeman-4.3.1 bundle/ruby/2.5.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-4.3.0 bundle/ruby/2.5.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-4.2.1 bundle/ruby/2.5.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-4.2.0 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-4.1.1 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-4.1.0 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-4.0.1 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-4.0.1.pre1 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-4.0.0 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-3.7.2 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-3.7.1 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-3.7.0 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-3.6.2 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-3.6.1 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-3.6.0 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-3.5.0 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-3.4.1 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-3.4.0 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-3.3.5 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb
brakeman-3.3.4 bundle/ruby/2.3.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb