Sha256: c1180e29733e28583dc6c00801a222227c3be11d0d92b6952baecad60cf6f398

Contents?: true

Size: 850 Bytes

Versions: 6

Compression:

Stored size: 850 Bytes

Contents

require 'test_helper'

module Vedeu

  module Templating

	  describe Decoder do

      let(:described) { Vedeu::Templating::Decoder }
      let(:instance)  { described.new(data) }
      let(:data)      {
        "eJxj4ci3EgpLTUkttbJyzs/JLy1itxJwSEpMzk4vyi/NS8m3EoPKOsHF2Kx4HJLBaj" \
        "2VeJTT0gyAgM2KzTUEqDMtvygVXacbXIzNmgOkxcAApInNmjMEAAMcJsQ="
      }
      let(:expected)  {
        Vedeu::Colour.new(background: '#ff0000', foreground: '#00ff00')
      }

      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 # Decoder

  end # Templating

end # Vedeu

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vedeu-0.5.0 test/lib/vedeu/templating/decoder_test.rb
vedeu-0.4.65 test/lib/vedeu/templating/decoder_test.rb
vedeu-0.4.64 test/lib/vedeu/templating/decoder_test.rb
vedeu-0.4.63 test/lib/vedeu/templating/decoder_test.rb
vedeu-0.4.62 test/lib/vedeu/templating/decoder_test.rb
vedeu-0.4.61 test/lib/vedeu/templating/decoder_test.rb