Warning: Creating default object from empty value in /homepages/39/d161420129/htdocs/p373.net/wp/wp-content/themes/p373b/admin/functions.php on line 183
Global Technology, Activism, Philosophy, Photography.

Monthly Archives: February 2013

Patterns: Exception Factory(or is it a Proxy?)

Let’s say you are writing a library that wraps around an API, say Yammer.  Your library probably uses a lower level library to manage the http requests, say Faraday.  There are a multitude of problems that may arise while communicating with their api.  For example, the user could have revoked their token, or there could […]

Posted in Coding, Ruby/Rails, Technology | Tagged , , | Comments closed

Capybara custom matcher alternative

Sometimes when writing specs, you want to test a high level case multiple times across multiple spec tests.  This test may involve asserting multiple things on the page. There is probably a proper way to do this, like see this gist , or there is my way, which seems way simpler. So the objective is to […]

Posted in Coding, Ruby/Rails, Technology, Uncategorized | Tagged , | Comments closed