test/lib/vedeu/models/view/interface_test.rb in vedeu-0.3.1 vs test/lib/vedeu/models/view/interface_test.rb in vedeu-0.3.2
- old
+ new
@@ -29,11 +29,11 @@
describe '#border?' do
subject { instance.border? }
context 'when the interface has a border' do
- before { instance.stubs(:border).returns(mock('Border')) }
+ before { Vedeu.borders.stubs(:registered?).with(_name).returns(true) }
it { subject.must_equal(true) }
end
context 'when the interface does not have a border' do
@@ -59,27 +59,10 @@
subject { instance.cursor }
it { subject.must_be_instance_of(Vedeu::Cursor) }
end
- # TODO: when the interface does not have any geometry defined?
- # describe '#render' do
- # subject { instance.render }
-
- # context 'when the interface has a border' do
- # let(:border) { Vedeu::Border.new(instance, { enabled: true }) }
-
- # before { instance.stubs(:border).returns(border) }
-
- # it { skip }
- # end
-
- # context 'when the interface does not have a border' do
- # it { skip }
- # end
- # end
-
describe '#inspect' do
subject { instance.inspect }
it { subject.must_equal('<Vedeu::Interface (lines:0)>') }
end
@@ -112,16 +95,9 @@
# context 'when the interface has a group' do
# it { skip }
# end
# end
- end
-
- # TODO: when the interface does not have any geometry defined?
- describe '#viewport' do
- subject { instance.viewport }
-
- # it { skip }
end
end # Interface
end # Vedeu