Skip to content

Instantly share code, notes, and snippets.

@jtadeulopes
Created July 18, 2010 17:43
Show Gist options
  • Select an option

  • Save jtadeulopes/480566 to your computer and use it in GitHub Desktop.

Select an option

Save jtadeulopes/480566 to your computer and use it in GitHub Desktop.
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
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