Sha256: 48a6644b9abe615447d92d5da34a87cd394f1b17a4492b429f597ae6f4373982

Contents?: true

Size: 990 Bytes

Versions: 22

Compression:

Stored size: 990 Bytes

Contents

require 'test_helper'

module Vedeu

  module Runtime

    describe Flags do

      let(:described) { Vedeu::Runtime::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 # Runtime

end # Vedeu

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
vedeu-0.6.29 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.28 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.27 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.26 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.25 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.24 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.23 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.22 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.21 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.20 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.19 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.18 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.17 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.16 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.15 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.14 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.13 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.12 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.11 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.10 test/lib/vedeu/runtime/flags_test.rb