Fixed RSpec warnings.

* Defined a subject for all specs.
* Removed before(:all)...end blocks.