Sha256: a5701f872376e082008f76530fda52a85ecc9ebefa6f20b501f3b914dfcb4d4b
Contents?: true
Size: 855 Bytes
Versions: 2
Compression:
Stored size: 855 Bytes
Contents
require 'test_helper' module Vedeu module Templating describe Encoder do let(:described) { Vedeu::Templating::Encoder } let(:instance) { described.new(data) } let(:data) { Vedeu::Colour.new(background: '#ff0000', foreground: '#00ff00') } let(:expected) { "{{eJxj4ci3EgpLTUkttbJyzs/JLy1itxJwSEpMzk4vyi/NS8m3EoPKOsHF2Kx4HJLBaj" \ "2VeJTT0gyAgM2KzTUEqDMtvygVXacbXIzNmgOkxcAApInNmjMEAAMcJsQ=}}" } describe '#initialize' do it { instance.instance_variable_get('@data').must_equal(data) } end describe '.process' do subject { described.process(data) } it { subject.must_equal(expected) } end describe '#process' do it { instance.must_respond_to(:process) } end end # Encoder end # Templating end # Vedeu
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.5.0 | test/lib/vedeu/templating/encoder_test.rb |
vedeu-0.4.65 | test/lib/vedeu/templating/encoder_test.rb |