Skip to content

Instantly share code, notes, and snippets.

@adarapata
adarapata / hoge.rb
Created July 24, 2012 02:37 — forked from hiboma/hoge.rb
Quiz - Array methods
# -*- encoding: utf-8 -*-
describe Array do
let(:e) { [1,2,3,4,5] }
it "先頭の要素(1)を返すメソッド" do
e[0].should == 1
e.at(0).should == 1
e.first.should == 1