Sha256: 3e20166c5ff20dcf83a7c21e9d81aa410f858a5ef128f6be5e051b005c3ab35c
Contents?: true
Size: 292 Bytes
Versions: 2
Compression:
Stored size: 292 Bytes
Contents
# frozen_string_literal: true require "spec_helper" RSpec.describe Template do [ ["{name = :Dorian nothing}Hello {name}", "Hello Dorian"] ].each do |input, expected| it "#{input} == #{expected}" do expect(described_class.evaluate(input)).to eq(expected) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
template-ruby-1.1.2 | spec/template_spec.rb |
template-ruby-1.1.0 | spec/template_spec.rb |