TDD for resources

Use indentation to make this a bit more readable. Everything between the `do..end` block should be indented two spaces.