Sha256: d3941bae755e2102309f35acbbc24ba2704ae3bd5be7dd65d8a87e733cde211b

Contents?: true

Size: 266 Bytes

Versions: 88

Compression:

Stored size: 266 Bytes

Contents

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

88 entries across 88 versions & 1 rubygems

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