Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Sinatra - does anyone use test fixtures? how is your test suite set up?

I'm coming from a Ruby/Rails world. I'm getting testing set up on a Sinatra project (with Rack::Test). I usually use Fixtures in testing. Is there an equivalent for Sinatra?

How do people set up their Sinatra test suites (outside of the basic helloworld example that is the only example I can find for Sinatra tests).

Thanks!

like image 765
NatGordon Avatar asked May 14 '10 17:05

NatGordon


1 Answers

I use Machinist for this (and Rails, also. Hate YAML fixtures.)

like image 140
x1a4 Avatar answered Nov 09 '22 16:11

x1a4