Fix test suite compatibility with older Rubies.

The ability to chain method calls with the dot on a new line was
introduced in Ruby 1.9.1 (the changelog is available at
<http://svn.ruby-lang.org/repos/ruby/tags/v1_9_1_0/NEWS>). Since we're
still maintaining compatibility with 1.8.x versions (at least for now),
we have to stick with the less pretty syntax.