ManageIQ/manageiq — pull request #212 by Fryguy (2014-07-15 18:02:42+00:00)
Title: Added QueryCounter helper class for specs.

This is a simple class for helping us do query counts in specs. There is also a matcher to allow spec writers to limit the number of queries if desired.

We could potentially use this to count all queries in all specs with something like the following in spec_helper.rb

```ruby
config.around do |example|
puts "Queries: #{QueryCounter.count(&example)}"
end
```

@jrafanie Please review.