Zach Schneider

Assorted writing and wordsmithery.


Ray Rice and a League of Lip Service

On February 15, Baltimore Ravens running back Ray Rice was arrested and charged with simple assault for punching his then-fiancĂ©e, now-wife Janay Palmer in an elevator in the Revel Casino in Atlantic City. A security camera outside the elevator showed Rice dragging an unconscious Palmer out of the elevator by… »

Writing Tests for Rails: Controllers

In the previous post, I discussed writing model tests to enhance the coverage of your test suite. In this final post, I'll cover one other specific kind of test: controller tests. Controller tests are similar to model tests in that while model tests test one specific method of a model… »

Writing Tests for Rails: Models

In the previous post, I finished up covering how to write comprehensive feature tests for Rails applications. Feature tests will do the trick most of the time, as they effectively simulate a user stepping through each of the possible flows through your application and thus ensure correct behavior. However, there… »

Writing Tests for Rails: Features

In the last post, I covered mocking data with FactoryGirl and writing a basic feature test using mocked data. In this article, I'll cover writing more complicated feature specs and incorporating helper methods to enhance your feature tests. As I mentioned at the end of the previous post, our first… »

Mark Driscoll and a Religion of Violence

For the longest time, I had relatively mixed views on Mark Driscoll. There are aspects of his persona that seemed refreshing in contrast to other evangelical leaders- his willingness to boldly proclaim his stances, his occasionally foul mouth, and his casual manner of dress all proclaimed him as a pragmatically… »

Writing Tests for Rails: Factories

In the last post, I covered setting up the rspec test environment and writing your first basic feature test. In this post, I'll cover using factories to mock data and write a simple feature test using that mocked data. First, you'll need to add a few gems to the test… »