Sha256: acf0479c9531b59e6a9c3bc742b2f4ff8e285ee11d70af32407ad37faf031d42

Contents?: true

Size: 358 Bytes

Versions: 36

Compression:

Stored size: 358 Bytes

Contents

require 'spec_helper'

describe Hamlit::Filters::Ruby do
  it 'renders ruby filter' do
    assert_render(<<-HAML, <<-HTML)
      :ruby
      hello
    HAML
      hello
    HTML
  end

  it 'renders ruby filter' do
    assert_render(<<-HAML, <<-HTML)
      :ruby
        hash = {
          a: 3,
        }
      = hash[:a]
    HAML
      3
    HTML
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
hamlit-1.5.1 spec/hamlit/filters/ruby_spec.rb
hamlit-1.5.0 spec/hamlit/filters/ruby_spec.rb
hamlit-1.4.7 spec/hamlit/filters/ruby_spec.rb
hamlit-1.4.6 spec/hamlit/filters/ruby_spec.rb
hamlit-1.4.5 spec/hamlit/filters/ruby_spec.rb
hamlit-1.4.3 spec/hamlit/filters/ruby_spec.rb
hamlit-1.4.2 spec/hamlit/filters/ruby_spec.rb
hamlit-1.4.1 spec/hamlit/filters/ruby_spec.rb
hamlit-1.3.2 spec/hamlit/filters/ruby_spec.rb
hamlit-1.3.1 spec/hamlit/filters/ruby_spec.rb
hamlit-1.3.0 spec/hamlit/filters/ruby_spec.rb
hamlit-1.2.1 spec/hamlit/filters/ruby_spec.rb
hamlit-1.2.0 spec/hamlit/filters/ruby_spec.rb
hamlit-1.1.1 spec/hamlit/filters/ruby_spec.rb
hamlit-1.1.0 spec/hamlit/filters/ruby_spec.rb
hamlit-1.0.0 spec/hamlit/filters/ruby_spec.rb
hamlit-0.6.2 spec/hamlit/filters/ruby_spec.rb
hamlit-0.6.1 spec/hamlit/filters/ruby_spec.rb
hamlit-0.6.0 spec/hamlit/filters/ruby_spec.rb
hamlit-0.5.3 spec/hamlit/filters/ruby_spec.rb