Sha256: 057ad267d808c489338e492a17438b14a8e7e8212a8078819a5bb01d5033c132

Contents?: true

Size: 402 Bytes

Versions: 48

Compression:

Stored size: 402 Bytes

Contents

require 'rails_helper'

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

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

48 entries across 48 versions & 1 rubygems

Version Path
lhs-6.6.1 spec/collection/delegate_spec.rb
lhs-6.6.0 spec/collection/delegate_spec.rb
lhs-6.5.0 spec/collection/delegate_spec.rb
lhs-6.4.0 spec/collection/delegate_spec.rb
lhs-6.3.1 spec/collection/delegate_spec.rb
lhs-6.3.0 spec/collection/delegate_spec.rb
lhs-6.2.0 spec/collection/delegate_spec.rb
lhs-6.1.0 spec/collection/delegate_spec.rb
lhs-6.0.0 spec/collection/delegate_spec.rb
lhs-5.7.1 spec/collection/delegate_spec.rb
lhs-5.7.0 spec/collection/delegate_spec.rb
lhs-5.6.6 spec/collection/delegate_spec.rb
lhs-5.6.5 spec/collection/delegate_spec.rb
lhs-5.6.4 spec/collection/delegate_spec.rb
lhs-5.6.3 spec/collection/delegate_spec.rb
lhs-5.6.2 spec/collection/delegate_spec.rb
lhs-5.6.1 spec/collection/delegate_spec.rb
lhs-5.6.0 spec/collection/delegate_spec.rb
lhs-5.5.0 spec/collection/delegate_spec.rb
lhs-5.4.2 spec/collection/delegate_spec.rb