Sha256: de16ede32d5e6b7404cd9d695cbe2136ab1c4a7eebb27419a876f41d9c138920

Contents?: true

Size: 472 Bytes

Versions: 76

Compression:

Stored size: 472 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

describe LHS::Collection do
  let(:data) do
    ['ROLE_USER', 'ROLE_LOCALCH_ACCOUNT']
  end

  let(:collection) do
    LHS::Collection.new(LHS::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

76 entries across 76 versions & 1 rubygems

Version Path
lhs-26.2.0 spec/collection/delegate_spec.rb
lhs-26.1.0 spec/collection/delegate_spec.rb
lhs-26.0.1 spec/collection/delegate_spec.rb
lhs-26.0.0 spec/collection/delegate_spec.rb
lhs-25.2.0 spec/collection/delegate_spec.rb
lhs-25.1.0 spec/collection/delegate_spec.rb
lhs-25.0.4 spec/collection/delegate_spec.rb
lhs-25.0.3 spec/collection/delegate_spec.rb
lhs-25.0.2 spec/collection/delegate_spec.rb
lhs-25.0.1 spec/collection/delegate_spec.rb
lhs-25.0.0 spec/collection/delegate_spec.rb
lhs-24.1.2 spec/collection/delegate_spec.rb
lhs-24.1.1 spec/collection/delegate_spec.rb
lhs-24.1.0 spec/collection/delegate_spec.rb
lhs-24.1.0.pre.2 spec/collection/delegate_spec.rb
lhs-24.1.0.pre.1 spec/collection/delegate_spec.rb
lhs-24.0.0 spec/collection/delegate_spec.rb
lhs-23.0.2 spec/collection/delegate_spec.rb
lhs-23.0.1 spec/collection/delegate_spec.rb
lhs-23.0.0 spec/collection/delegate_spec.rb