Upgrade to rspec 3

Fix an odd bug in the Middleware