Created
October 24, 2013 01:06
-
-
Save octosteve/7129600 to your computer and use it in GitHub Desktop.
Teaching tests
This file contains hidden or 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 'minitest/autorun' | |
describe Person do | |
it "is initialized with a name and profession" do | |
person = Person.new "Steven", "Software Developer" | |
person.introduce.must_equal "Hi! My name is Steven. I'm a Software Developer" | |
person.introduce_from_across_the_room.must_equal "HI! MY NAME IS STEVEN. I'M A SOFTWARE DEVELOPER" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment