Last active
August 29, 2015 14:18
-
-
Save tiagodavi/ff05011288b374e887eb to your computer and use it in GitHub Desktop.
BDD with Happy Numbers
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
describe HappyNumber do | |
it "Is possible to chek if a number is happy?" do | |
happy_number = HappyNumber.new | |
expect(happy_number.happy?(7)).to be true | |
end | |
end | |
#happy_number.rb | |
class HappyNumber | |
def happy?(number) | |
true | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment