Sha256: 90a5d58b97068015f44701231ddcbacfa3c6e2a4a50e22b45641e9c9bf2076d7
Contents?: true
Size: 804 Bytes
Versions: 5
Compression:
Stored size: 804 Bytes
Contents
require 'test_helper' module Vedeu describe Interfaces do let(:described) { Vedeu::Interfaces } it { described.must_respond_to(:interfaces) } describe '.reset!' do subject { described.reset! } it { described.expects(:register).with(Vedeu::Interface) subject } end describe '#zindexed' do before do @hydrogen = Vedeu.interface 'hydrogen' do zindex 2 end @helium = Vedeu.interface 'helium' do zindex 3 end @lithium = Vedeu.interface 'lithium' do zindex 1 end end after { Vedeu.interfaces.reset } subject { Vedeu.interfaces.zindexed } it { subject.must_equal([@lithium, @hydrogen, @helium]) } end end # Interfaces end # Vedeu
Version data entries
5 entries across 5 versions & 1 rubygems