Skip to content
This repository
branch: readruby
Fetching contributors…

Cannot retrieve contributors at this time

file 10 lines (9 sloc) 0.291 kb
1 2 3 4 5 6 7 8 9 10
require File.dirname(__FILE__) + '/../../spec_helper'
require File.dirname(__FILE__) + '/fixtures/classes'

describe "Array#empty?" do
  it "returns true if the array has no elements" do
    [].empty?.should == true
    [1].empty?.should == false
    [1, 2].empty?.should == false
  end
end
Something went wrong with that request. Please try again.