Sha256: 309148470f7d4e4ff856a6e9372ab2514be398e6aa5d521c1553703ae6dbfc7d

Contents?: true

Size: 918 Bytes

Versions: 1

Compression:

Stored size: 918 Bytes

Contents

require_relative File.join 'support', 'coverage'
require_relative File.join '..', 'lib', 'qi'
require 'fix'

Fix.describe Qi::Store do
  on :new, 8 do
    on :to_a do
      it { MUST eql [nil, nil, nil, nil, nil, nil, nil, nil] }
    end

    on :captured do
      it { MUST be_nil }
    end

    on :call, 2, 3, 'p' do
      on :to_a do
        it { MUST eql [nil, nil, nil, 'p', nil, nil, nil, nil] }
      end

      on :captured do
        it { MUST be_nil }
      end

      on :call, 2, 4, 'K' do
        on :to_a do
          it { MUST eql [nil, nil, nil, 'p', 'K', nil, nil, nil] }
        end

        on :captured do
          it { MUST be_nil }
        end

        on :call, 3, 4, 'p' do
          on :to_a do
            it { MUST eql [nil, nil, nil, nil, 'p', nil, nil, nil] }
          end

          on :captured do
            it { MUST eql 'K' }
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qi-5.0.0 fix/store_fix.rb