test/lib/vedeu/dsl/interface_test.rb in vedeu-0.6.4 vs test/lib/vedeu/dsl/interface_test.rb in vedeu-0.6.5
- old
+ new
@@ -22,19 +22,19 @@
describe '.interface' do
after { Vedeu.interfaces.reset }
subject {
- described.interface('flourine') do
+ described.interface('fluorine') do
# ...
end
}
it { subject.must_be_instance_of(Vedeu::Interface) }
context 'when the block is not given' do
- subject { described.interface('flourine') }
+ subject { described.interface('fluorine') }
it { proc { subject }.must_raise(Vedeu::Error::InvalidSyntax) }
end
context 'when the name is not given' do
@@ -58,11 +58,11 @@
end
context 'when the block is given' do
subject { instance.border { } }
- it { subject.must_be_instance_of(Vedeu::Border) }
+ it { subject.must_be_instance_of(Vedeu::Borders::Border) }
context 'when the name is not given' do
it 'uses the interface name for storing the border' do
subject.name.must_equal('actinium')
end
@@ -81,11 +81,11 @@
describe '#border!' do
after { Vedeu.borders.reset }
subject { instance.border! }
- it { subject.must_be_instance_of(Vedeu::Border) }
+ it { subject.must_be_instance_of(Vedeu::Borders::Border) }
end
describe '#cursor' do
let(:_value) {}
@@ -186,10 +186,10 @@
end
context 'when the block is given' do
subject { instance.geometry { } }
- it { subject.must_be_instance_of(Vedeu::Geometry) }
+ it { subject.must_be_instance_of(Vedeu::Geometry::Geometry) }
context 'when the name is not given' do
it 'uses the interface name for storing the geometry' do
subject.name.must_equal('actinium')
end