Sha256: 30cde2313b91af8b03565fbb09fdd7f3fae5c7a2f6acc3adb8c55f8d33b22022

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

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 :call, 44, 3, 'p' do
      it { MUST raise_exception ArgumentError }
    end

    on :call, 2, 444, 'p' do
      it { MUST raise_exception ArgumentError }
    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.1.0 fix/store_fix.rb