Sha256: e54f5f6610313c8473b4542022ae3c319bc0c81b923ac39b5726d1b4c4e6d9f3

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

require 'test_helper'

module Vedeu

  describe NullBorder do

    let(:described) { Vedeu::NullBorder }
    let(:instance)  { described.new(interface) }
    let(:interface) { stub('Interface', x: 4, y: 6, xn: 10, yn: 12) }

    describe '#initialize' do
      it { instance.must_be_instance_of(Vedeu::NullBorder) }
      it { instance.instance_variable_get('@interface').must_equal(interface) }
    end

    describe '#bx' do
      subject { instance.bx }

      it { subject.must_be_instance_of(Fixnum) }
      it { subject.must_equal(4) }
    end

    describe '#by' do
      subject { instance.by }

      it { subject.must_be_instance_of(Fixnum) }
      it { subject.must_equal(6) }
    end

    describe '#bxn' do
      subject { instance.bxn }

      it { subject.must_be_instance_of(Fixnum) }
      it { subject.must_equal(10) }
    end

    describe '#byn' do
      subject { instance.byn }

      it { subject.must_be_instance_of(Fixnum) }
      it { subject.must_equal(12) }
    end

    describe '#render' do
      subject { instance.render }

      it { subject.must_be_instance_of(Array) }
      it { subject.must_equal([]) }
    end

  end # NullBorder

end # Vedeu

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.4.11 test/lib/vedeu/output/null_border_test.rb
vedeu-0.4.10 test/lib/vedeu/output/null_border_test.rb