Sean’s Obsessions


  • I'm a happy Linode customer. This is a Linode 540 VPS. Linode periodically increases RAM and disk while keeping costs steady, which makes them the natural choice.
  • Archives

Archive for the 'Ruby on Rails' Category

29 Jun

Load testing a Rails app with JMeter and the authenticity_token

I have been slowly learning how to use JMeter to load test the Small Payroll application. One of the problems has been getting around the CSRF protection that Rails puts in with the authenticity_token parameter.
Each form has a hidden form element:
<div style=”margin:0;padding:0;display:inline”>
<input name=”authenticity_token” type=”hidden”
value=”16iUP1J2tdSKyvHKgYR/I/og6K7NgPPmTHCZ+idQP4k=” />
</div>
The token is also encrypted in the session so that the [...]

03 Sep

Shoulda, nested contexts, and should_change_by

I love some of shoulda’s macros, partially because it forces me to think about my tests and put them in setup blocks, which ends up making things cleaner.
So I ran into a case where I do an action and use should_change to make sure that a certain number of rows were added to a table, [...]

© 2010 Sean’s Obsessions | Entries (RSS) and Comments (RSS)

Powered by Wordpress, design by Web4Sudoku, based on Pinkline byGPS Gazette