Sha256: 6e1b8e465e0af5662182b2f5b1da4abf4b8694f592c60c16e9eae42ec2e87c3f
Contents?: true
Size: 905 Bytes
Versions: 11
Compression:
Stored size: 905 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.must_be_instance_of(described) } 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
11 entries across 11 versions & 1 rubygems