Update tests for RSpec 3

Previously, ohai had an unbounded dependency on rspec, so Ci started using RSpec 3. This pull request adds pessimistic constraints for the rspec gems and fixes the tests to work correctly with RSpec 3.