Sha256: 99900c4987e5d05dab21cac11557089ad09b767ffa1d794671a77d1fce954d4c

Contents?: true

Size: 435 Bytes

Versions: 17

Compression:

Stored size: 435 Bytes

Contents

describe Hamlit::Engine do
  describe '.new' do
    subject { described_class.new(options) }

    let(:buffer)  { '_a' }
    let(:options) do
      {
        buffer:    buffer,
        generator: Temple::Generators::ArrayBuffer,
        ugly:      true,
      }
    end

    it 'accepts generator valid options' do
      expect(subject.call('')).to eq(
        "#{buffer} = []; ; #{buffer} = #{buffer}.join",
      )
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
hamlit-0.5.3 spec/hamlit/engine_spec.rb
hamlit-0.5.2 spec/hamlit/engine_spec.rb
hamlit-0.5.1 spec/hamlit/engine_spec.rb
hamlit-0.5.0 spec/hamlit/engine_spec.rb
hamlit-0.4.3 spec/hamlit/engine_spec.rb
hamlit-0.4.2 spec/hamlit/engine_spec.rb
hamlit-0.4.1 spec/hamlit/engine_spec.rb
hamlit-0.3.4 spec/hamlit/engine_spec.rb
hamlit-0.3.3 spec/hamlit/engine_spec.rb
hamlit-0.3.2 spec/hamlit/engine_spec.rb
hamlit-0.3.1 spec/hamlit/engine_spec.rb
hamlit-0.3.0 spec/hamlit/engine_spec.rb
hamlit-0.2.0 spec/hamlit/engine_spec.rb
hamlit-0.1.3 spec/hamlit/engine_spec.rb
hamlit-0.1.2 spec/hamlit/engine_spec.rb
hamlit-0.1.1 spec/hamlit/engine_spec.rb
hamlit-0.1.0 spec/hamlit/engine_spec.rb