Blog
-
Testing signed and encrypted cookies in Rails
Recently I’ve been refactoring the tests for a gem I maintain and I needed to test that it sets the right cookies at the right time. But the cookies in use in the gem are signed cookies and that caused a slight hiccup for me. I’d never tested the value in a signed cookie before and it wasn’t immediately obvious what to do.
-
-
-
-
-
How not to sort an array in JavaScript
Array sorting is one of those things you don’t spend too long thinking about, until it stops working for you. Recently I was working with array of items in JavaScript that were not sorting at all properly and completely messing up an interface. It took me way too long to work out what went wrong so I wanted to share what happened and why it was so weird.
-
-
-
-
Subscribe
To keep up with posts on this blog, you can subscribe via RSS or follow me on DEV.