I was wondering if there is any way I can write unit tests for a method like the one below.
class MyApp < Sinatra::Base
namespace '/test' do
def foo
puts 'bar'
end
end
end
What I need is just a way to create some simple asserts on this method. Is this possible?
Thanks
Aucun commentaire:
Enregistrer un commentaire