Sha256: 258e0503931637dabc9a1c2d65cc52eaf802da226ed638c1d19345f7a3d7eb6c

Contents?: true

Size: 402 Bytes

Versions: 3

Compression:

Stored size: 402 Bytes

Contents

require 'rails_helper'

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

  let(:collection){
    described_class.new(LHS::Data.new(data))
  }

  context 'delegates methods to raw' do
    %w(present? blank? empty?).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

3 entries across 3 versions & 1 rubygems

Version Path
lhs-3.0.3 spec/collection/delegate_spec.rb
lhs-3.0.2 spec/collection/delegate_spec.rb
lhs-3.0.1 spec/collection/delegate_spec.rb