Sha256: 84f6ba94c996647a4084fdb745b3c4e75a289c86de7b3bd9aee33423b5773ce4
Contents?: true
Size: 766 Bytes
Versions: 1
Compression:
Stored size: 766 Bytes
Contents
require 'test_helper' module Vedeu describe Offsets do before { Offsets.reset } describe '#add' do it 'raises an exception if a :name attribute is not provided' do proc { Offsets.add({ no_name: 'no_name' }) } .must_raise(MissingRequired) end it 'returns a new instance of Offset once stored' do Offsets.add({ name: 'praseodymium' }).must_be_instance_of(Offset) end end describe '#move' do before { Focus.stubs(:current).returns('praseodymium') } it 'returns an instance of Offset' do Offsets.move(0, 1).must_be_instance_of(Offset) end it 'alters the offset of the interface in focus' do Offsets.move(0, 1).x.must_equal(1) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.2.4 | test/lib/vedeu/repositories/offsets_test.rb |