adamwiggins / rush

Ruby replacement for bash+ssh

This URL has Read+Write access

rush / spec / array_ext_spec.rb
100644 16 lines (12 sloc) 0.276 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require File.dirname(__FILE__) + '/base'
 
describe Array do
it "mixes commands into array" do
[ 1,2,3 ].entries.should == [ 1, 2, 3 ]
end
 
it "can call head" do
[ 1,2,3 ].head(1).should == [ 1 ]
end
 
it "can call tail" do
[ 1,2,3 ].tail(1).should == [ 3 ]
end
end