Skip to content

Commit

Permalink
Merge remote-tracking branch 'andrewmcdonough/master' into shruggers
Browse files Browse the repository at this point in the history
Conflicts:
	spec/golf_spec.rb
  • Loading branch information
sky-glenjamin committed May 9, 2011
2 parents f7c5ec7 + f83b42b commit e04e4e5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions spec/golf_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,24 @@
it "should multiply the numbers in an array" do
Golf.hole1([1,2,3,4]).should eql 24
end

it "should be 600 for [5,2,10,6]" do
Golf.hole1([5,2,10,6]).should eql 600
end
it "should be 50 for [2,5,5]" do
Golf.hole1([2,5,5]).should eql 50
end
end


describe ".hole2" do
it "should sort a sentence by the second letter of each word" do
Golf.hole2("the quick brown fox").should eql "the fox brown quick"
end

it "should successfully sort 'jumps over the lazy dog'" do
Golf.hole2("jumps over the lazy dog").should eql "lazy the dog jumps over"
end
it "should successfully sort 'ruby golf is great'" do
Golf.hole2("ruby golf is great").should eql "golf great is ruby"
end
end

describe ".hole3" do
Expand Down

0 comments on commit e04e4e5

Please sign in to comment.