Sha256: 0a803f24d06966c88f60d4f8d2d74765db60542f4a5c0adb4d3138ff6c989e65

Contents?: true

Size: 409 Bytes

Versions: 76

Compression:

Stored size: 409 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(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

76 entries across 76 versions & 1 rubygems

Version Path
lhs-14.6.2 spec/collection/delegate_spec.rb
lhs-14.6.1 spec/collection/delegate_spec.rb
lhs-14.6.0 spec/collection/delegate_spec.rb
lhs-14.5.0 spec/collection/delegate_spec.rb
lhs-14.4.0 spec/collection/delegate_spec.rb
lhs-14.3.4 spec/collection/delegate_spec.rb
lhs-14.3.3 spec/collection/delegate_spec.rb
lhs-14.3.2 spec/collection/delegate_spec.rb
lhs-14.3.1 spec/collection/delegate_spec.rb
lhs-14.3.0 spec/collection/delegate_spec.rb
lhs-14.2.0 spec/collection/delegate_spec.rb
lhs-14.1.1 spec/collection/delegate_spec.rb
lhs-14.1.0 spec/collection/delegate_spec.rb
lhs-14.0.3 spec/collection/delegate_spec.rb
lhs-14.0.2 spec/collection/delegate_spec.rb
lhs-14.0.1 spec/collection/delegate_spec.rb
lhs-14.0.0 spec/collection/delegate_spec.rb
lhs-13.2.3 spec/collection/delegate_spec.rb
lhs-13.2.2 spec/collection/delegate_spec.rb
lhs-13.2.1 spec/collection/delegate_spec.rb