Registry / testing / db-query-matchers

db-query-matchers

JSON →
library0.15.0rbrubygemsunverified

RSpec matchers for database queries to test query counts and types.

gem install db-query-matchers
INSTALL
IMPORT
SIG · DB-QUERY-MATCHERS
D
db-query-matchers
testingrubyv0.15.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DBQueryMatchers
require 'db_query_matchers'

Use DB query matchers in an RSpec test.

require 'db_query_matchers' RSpec.describe 'query test' do it { expect { User.find(1) }.to match_query_count(1) } end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.15.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
db-query-matchers — gem install db-query-matchers · libregistry