Sha256: daa7a61d56c4410d22883c42ab210f0f67c9606b28c0af92f798b167751973d0
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 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 '#height' do subject { instance.height } it { subject.must_be_instance_of(Fixnum) } it { subject.must_equal(7) } end describe '#render' do subject { instance.render } it { subject.must_be_instance_of(Array) } it { subject.must_equal([]) } end describe '#width' do subject { instance.width } it { subject.must_be_instance_of(Fixnum) } it { subject.must_equal(7) } end end # NullBorder end # Vedeu
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.4.13 | test/lib/vedeu/output/null_border_test.rb |
vedeu-0.4.12 | test/lib/vedeu/output/null_border_test.rb |