Sha256: 17634afe9e4c3f7f6f8a7963775bc58e1e17d3b16492453ef225b472cc46feac

Contents?: true

Size: 244 Bytes

Versions: 2

Compression:

Stored size: 244 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

RSpec.describe 'Ruby filter rendering', type: :render do
  it 'renders ruby filter' do
    expect(render_string(<<HAML)).to eq("3\n")
:ruby
  hash = {
    a: 3,
  }
= hash[:a]
HAML
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
faml-0.8.1 spec/render/filters/ruby_spec.rb
faml-0.8.0 spec/render/filters/ruby_spec.rb