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