Sha256: 9515f48f8fca54ffffc4fbca863f172d8e6544410852755edb1c948456d0c263
Contents?: true
Size: 321 Bytes
Versions: 122
Compression:
Stored size: 321 Bytes
Contents
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
122 entries across 122 versions & 1 rubygems