Sha256: 465992da35511658c585618d3eaa843d439db1142e0040c257b3b2f56d40f006
Contents?: true
Size: 811 Bytes
Versions: 3
Compression:
Stored size: 811 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe LiquidDiagrams::Renderers::SyntraxRenderer do subject(:renderer) { described_class.new('content') } describe '#render' do include_examples 'render with tempfile', described_class end describe '#build_command' do context 'when config is empty' do it { expect(renderer.build_command).to eq 'syntrax' } end context 'when config is not empty' do before do renderer.instance_variable_set(:@config, { 'scale' => 10, 'color' => :blue }) end it 'build command with config' do expect(renderer.build_command).to match '--scale 10' end it 'ignore unsupported configuration' do expect(renderer.build_command).not_to match '--color blue' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems