Sha256: d00f81bb788a01c9511dd1da8710abfd5869e2327d1420ea6a26ab45c8afa8e0

Contents?: true

Size: 469 Bytes

Versions: 12

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

describe DHS::Collection do
  let(:data) do
    %w[ROLE_USER ROLE_LOCALCH_ACCOUNT]
  end

  let(:collection) do
    DHS::Collection.new(DHS::Data.new(data))
  end

  context 'delegates methods to raw' do
    %w(length size last sample present? blank? empty? compact).each do |method|
      it "delegates #{method} to raw" do
        expect(collection.send(method.to_sym)).not_to be_nil
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dhs-1.6.0 spec/collection/delegate_spec.rb
dhs-1.5.0 spec/collection/delegate_spec.rb
dhs-1.4.2 spec/collection/delegate_spec.rb
dhs-1.4.1 spec/collection/delegate_spec.rb
dhs-1.4.0 spec/collection/delegate_spec.rb
dhs-1.3.0 spec/collection/delegate_spec.rb
dhs-1.2.0 spec/collection/delegate_spec.rb
dhs-1.1.0 spec/collection/delegate_spec.rb
dhs-1.0.3 spec/collection/delegate_spec.rb
dhs-1.0.2 spec/collection/delegate_spec.rb
dhs-1.0.1 spec/collection/delegate_spec.rb
dhs-1.0.0 spec/collection/delegate_spec.rb