Skip to content

Setting post params in bacon tests

Michel Blanc edited this page Aug 11, 2012 · 1 revision

If you need to pass POST parameters in your bacon test, just provide a hash with the values to the post method :

post("/login",
     'username' => 'manveru',
     'password' => 'sensei').status.should == 200
Clone this wiki locally