Sha256: 84f1793171e8eda6cb8dc13cda7c75d66cc17ee5aa3ef59bd69f37157ede14e4

Contents?: true

Size: 383 Bytes

Versions: 17

Compression:

Stored size: 383 Bytes

Contents

require 'spec_helper'

RSpec.describe 'filter rendering', type: :render do
  it 'raises error if invalid filter name is given' do
    expect { render_string(':filter with spaces') }.to raise_error(Faml::SyntaxError)
  end

  it 'raises error if unregistered filter name is given' do
    expect { render_string(':eagletmt') }.to raise_error(Faml::FilterCompilers::NotFound)
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
faml-0.2.16 spec/render/filters_spec.rb
faml-0.2.15 spec/render/filters_spec.rb
faml-0.2.14 spec/render/filters_spec.rb
faml-0.2.13 spec/render/filters_spec.rb
faml-0.2.12 spec/render/filters_spec.rb
faml-0.2.11 spec/render/filters_spec.rb
faml-0.2.10 spec/render/filters_spec.rb
faml-0.2.9 spec/render/filters_spec.rb
faml-0.2.8 spec/render/filters_spec.rb
faml-0.2.7 spec/render/filters_spec.rb
faml-0.2.6 spec/render/filters_spec.rb
faml-0.2.5 spec/render/filters_spec.rb
faml-0.2.4 spec/render/filters_spec.rb
faml-0.2.3 spec/render/filters_spec.rb
faml-0.2.2 spec/render/filters_spec.rb
faml-0.2.1 spec/render/filters_spec.rb
faml-0.2.0 spec/render/filters_spec.rb