Sha256: 0388e61363b3d19ebb766e2f0480e8a0406dbb9c47c6ea6385db43994e6587c5
Contents?: true
Size: 649 Bytes
Versions: 1
Compression:
Stored size: 649 Bytes
Contents
require 'spec_helper' describe Array do describe "#remove_blanks" do it "to be this is a test" do expect("this is a test".split(" ").remove_blanks).to eq(["this", "is", "a", "test"]) end it "to be this is a test" do expect(["this", "", "that", nil].remove_blanks).to eq(["this", "that"]) end end describe "#remove_first_element" do it "to be this is a test" do expect(["1", "2", "3"].remove_first_element).to eq(["2", "3"]) end end describe "#remove_last_element" do it "to be this is a test" do expect(["1", "2", "3"].remove_last_element).to eq(["1", "2"]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flash_extensions-0.0.1 | spec/lib/array_extension_spec.rb |