spec/liquid_diagrams/utils_spec.rb in liquid-diagrams-0.2.0 vs spec/liquid_diagrams/utils_spec.rb in liquid-diagrams-0.3.0

- old
+ new

@@ -61,6 +61,16 @@ it 'return the file path under vendor direcotry' do expect(described_class.vendor_path('file')).to end_with 'vendor/file' end end end + + describe '.parse_inline_options' do + it 'parse inline options' do + input = 'a1=v1 a2="v2" a3="k3 v3"' + + options = described_class.parse_inline_options(input) + + expect(options).to match a_hash_including(a1: 'v1', a2: 'v2', a3: 'k3 v3') + end + end end