Sha256: c9b4c44c26869b5165cf337cea363a240921049c10bc5fad7b8b741bec4aeceb

Contents?: true

Size: 441 Bytes

Versions: 38

Compression:

Stored size: 441 Bytes

Contents

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

38 entries across 38 versions & 1 rubygems

Version Path
lhs-16.1.5 spec/collection/delegate_spec.rb
lhs-16.1.4 spec/collection/delegate_spec.rb
lhs-16.1.3 spec/collection/delegate_spec.rb
lhs-16.1.2 spec/collection/delegate_spec.rb
lhs-16.1.1 spec/collection/delegate_spec.rb
lhs-16.1.0 spec/collection/delegate_spec.rb
lhs-16.0.1 spec/collection/delegate_spec.rb
lhs-16.0.0 spec/collection/delegate_spec.rb
lhs-15.7.0 spec/collection/delegate_spec.rb
lhs-15.6.1 spec/collection/delegate_spec.rb
lhs-15.6.0 spec/collection/delegate_spec.rb
lhs-15.5.1 spec/collection/delegate_spec.rb
lhs-15.5.0 spec/collection/delegate_spec.rb
lhs-15.4.1 spec/collection/delegate_spec.rb
lhs-15.4.0 spec/collection/delegate_spec.rb
lhs-15.4.0.pre.hasone.1 spec/collection/delegate_spec.rb
lhs-15.3.3 spec/collection/delegate_spec.rb
lhs-15.3.3.pre.fixoptions.1 spec/collection/delegate_spec.rb
lhs-15.3.2 spec/collection/delegate_spec.rb
lhs-15.3.1 spec/collection/delegate_spec.rb