Created
October 14, 2014 07:43
-
-
Save sivabudh/4a289028ea917a4b9bfd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "spec_helper" | |
require "largest" # name of the class we have just created | |
describe Largest do | |
describe "#find_largest" do | |
it "finds the largest number in the array" do | |
largest_number = Largest.find_largest([1,4,2]) | |
expect(largest_number).to eq(4) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment