Skip to content

Instantly share code, notes, and snippets.

View zhimin's full-sized avatar

Zhimin Zhan zhimin

View GitHub Profile
@zhimin
zhimin / add_spec.rb
Created May 18, 2012 02:12
The test case of executing two rspec behaviours with line numbers
describe "Add" do # sample test rspec 1
it "can add single digit" do
puts "Add 1 + 2"
(1+2).should == 3
end
it "can add double digit" do
puts "Add 11 + 22"
(11+22).should == 33