Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 20 lines (16 sloc) 0.453 kB
957c2c9 @brixen Standardize require lines.
brixen authored
1 require File.expand_path('../../../spec_helper', __FILE__)
6c1c34a @brixen Ask not what RubySpec can do for you, but what you can do for RubySpec.
brixen authored
2
3 describe "Array.allocate" do
4 it "returns an instance of Array" do
5 ary = Array.allocate
6 ary.should be_kind_of(Array)
7 end
356fa4f @brixen Finally cleaned up trailing whitespace in spec files.
brixen authored
8
6c1c34a @brixen Ask not what RubySpec can do for you, but what you can do for RubySpec.
brixen authored
9 it "returns a fully-formed instance of Array" do
10 ary = Array.allocate
11 ary.size.should == 0
12 ary << 1
13 ary.should == [1]
14 end
356fa4f @brixen Finally cleaned up trailing whitespace in spec files.
brixen authored
15
7f25d0c @yugui puts the specs for Array on 1.8 and 1.9 together.
yugui authored
16 it "does not accept any arguments" do
17 lambda { Array.allocate(1) }.should raise_error(ArgumentError)
18 end
6c1c34a @brixen Ask not what RubySpec can do for you, but what you can do for RubySpec.
brixen authored
19 end
Something went wrong with that request. Please try again.