Sha256: aa064e7db24ea0d4f2806980539e807376d4d9941dc9dd932cc770164e77861a
Contents?: true
Size: 534 Bytes
Versions: 1
Compression:
Stored size: 534 Bytes
Contents
# frozen_string_literal: true Given('I have a liquid template with:') do |content| @content = content end When('I render it') do @output = render_liquid(@content) end When('I render it with {string} options:') do |key, options| @output = render_liquid(@content, key.to_sym => Hash[options.raw]) end Then('the output should contains {string}') do |pattern| expect(@output).to match Regexp.new(pattern) end Then('the output should not contains {string}') do |pattern| expect(@output).not_to match Regexp.new(pattern) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
liquid-diagrams-0.4.0 | features/step_definitions/diagrams.rb |