Lock 2.14 rspec and use mock instead of double for mocking.

In rspec 2.14 is mock deprecated and will be removed in rspec 3.0.