Sha256: 6123bdb922a5d19196c6a80d55f84f2f827b36051aa2412127f37ffcdd2655a0
Contents?: true
Size: 882 Bytes
Versions: 8
Compression:
Stored size: 882 Bytes
Contents
require 'test_helper' module Vedeu describe Flags do let(:described) { Vedeu::Flags } describe '.ready!' do it { described.ready!.must_equal(true) } end describe '.ready?' do context 'when Vedeu has triggered the :_initialize_ event' do before do described.reset! described.ready! end it { described.ready?.must_equal(true) } end context 'when Vedeu has not triggered the :_initialize_ event' do before do described.reset! end it { described.ready?.must_equal(false) } end end describe '.reset!' do subject { described.reset! } it { subject described.ready?.must_equal(false) } end describe '#reset!' do it { described.instance.must_respond_to(:reset!) } end end # Flags end # Vedeu
Version data entries
8 entries across 8 versions & 1 rubygems