Skip to content

Instantly share code, notes, and snippets.

@sivabudh
Created October 14, 2014 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sivabudh/4a289028ea917a4b9bfd to your computer and use it in GitHub Desktop.
Save sivabudh/4a289028ea917a4b9bfd to your computer and use it in GitHub Desktop.
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