Sha256: 3ac3e0f49b723d6a1f6c9d767b86a10138d653638594399c9132082b5285ff2c

Contents?: true

Size: 297 Bytes

Versions: 76

Compression:

Stored size: 297 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

describe LHS::Collection do
  let(:collection) do
    LHS::Collection.new(LHS::Data.new([]))
  end

  context 'array misses href' do
    it 'works with empty array' do
      expect(
        collection.href
      ).to eq nil
    end
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

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