Created
July 18, 2010 17:43
-
-
Save jtadeulopes/480566 to your computer and use it in GitHub Desktop.
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
| describe 'Person' | |
| before_each | |
| person = new Person('Lopes') | |
| end | |
| describe '.getName()' | |
| it 'deve retornar o nome' | |
| person.getName().should.be 'Lopes' | |
| end | |
| end | |
| describe '.setName()' | |
| it 'deve setar o nome' | |
| person.setName('Maria') | |
| person.getName().should.be 'Maria' | |
| end | |
| end | |
| describe '.walk()' | |
| it 'deve fazer a pessoa andar' | |
| person.walk().should.be 'Andando...' | |
| end | |
| end | |
| end |
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
| describe 'Array' | |
| describe '.sum()' | |
| it 'deve somar os valores do array' | |
| a = [1,2,3] | |
| a.sum().should.eql 6 | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment