Speed up rspec and cucumber tests.
Merge pull request #348 from trema/feature/speedup_tests

Speed up rspec and cucumber tests.