Sha256: 5a2d6caeba98a6091bd64a663a287cd2b2529edfbd9e0e6911618b337ac4fc92

Contents?: true

Size: 352 Bytes

Versions: 212

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Array do
  describe "unwrap" do
    it "to array" do
      arr = [1, 2, 3]
      expect(arr.unwrap).to eq(arr)
    end

    it "to integer" do
      arr = [1]
      expect(arr.unwrap).to eq(1)
    end

    it "to nil" do
      arr = []
      expect(arr.unwrap).to be_nil
    end
  end
end

Version data entries

212 entries across 212 versions & 2 rubygems

Version Path
bolognese-1.9.6 spec/array_spec.rb
bolognese-1.9.5 spec/array_spec.rb
bolognese-1.9.4 spec/array_spec.rb
bolognese-1.9.3 spec/array_spec.rb
bolognese-1.9.2 spec/array_spec.rb
bolognese-1.9 spec/array_spec.rb
bolognese-1.8.18 spec/array_spec.rb
bolognese-1.8.17 spec/array_spec.rb
bolognese-1.8.13 spec/array_spec.rb
bolognese-1.8.12 spec/array_spec.rb
bolognese-1.8.10 spec/array_spec.rb
bolognese-1.8.9 spec/array_spec.rb
bolognese-1.8.8 spec/array_spec.rb
bolognese-1.8.7 spec/array_spec.rb
bolognese-1.8.6 spec/array_spec.rb
bolognese-1.8.5 spec/array_spec.rb
bolognese-1.8.4 spec/array_spec.rb
bolognese-1.8.3 spec/array_spec.rb
bolognese-1.8.2 spec/array_spec.rb
bolognese-1.8.1 spec/array_spec.rb