Sha256: 3a48221a6e1038fc70104898ac6fc615ab5758a7fa9f9e1f5f6a56577c448bb0

Contents?: true

Size: 1.05 KB

Versions: 39

Compression:

Stored size: 1.05 KB

Contents

require 'test_helper'

module Vedeu

  describe 'Bindings' do
    it { Vedeu.bound?(:_initialize_).must_equal(true) }
  end

  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

39 entries across 39 versions & 1 rubygems

Version Path
vedeu-0.6.69 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.68 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.67 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.66 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.65 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.64 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.63 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.62 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.61 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.60 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.59 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.58 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.57 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.56 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.54 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.53 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.52 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.51 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.50 test/lib/vedeu/runtime/flags_test.rb
vedeu-0.6.49 test/lib/vedeu/runtime/flags_test.rb