Module | NullDB::RSpec::NullifiedDatabase |
In: |
lib/nulldb_rspec.rb
|
NullDBAdapter | = | ActiveRecord::ConnectionAdapters::NullDBAdapter |
A matcher for asserting that database statements have (or have not) been executed. Usage:
ActiveRecord::Base.connection.should have_executed(:insert)
The types of statement that can be matched mostly mirror the public operations available in ActiveRecord::ConnectionAdapters::DatabaseStatements:
There is also a special :anything symbol that will match any operation.