module RSpec::ActiveRecord::Expectations

Public Instance Methods

commit_a_transaction() click to toggle source
# File lib/rspec/activerecord/expectations.rb, line 24
def commit_a_transaction
  Matchers::TransactionMatcher.new(:commit_queries)
end
execute() click to toggle source
# File lib/rspec/activerecord/expectations.rb, line 4
def execute
  Matchers::QueryCountMatcher.new
end
execute_a_transaction() click to toggle source
# File lib/rspec/activerecord/expectations.rb, line 12
def execute_a_transaction
  Matchers::TransactionMatcher.new(:transaction_queries)
end
repeatedly_load(klass) click to toggle source
# File lib/rspec/activerecord/expectations.rb, line 8
def repeatedly_load(klass)
  Matchers::LoadMatcher.new(klass)
end
roll_back_a_transaction() click to toggle source
# File lib/rspec/activerecord/expectations.rb, line 20
def roll_back_a_transaction
  Matchers::TransactionMatcher.new(:rollback_queries)
end
rollback_a_transaction() click to toggle source
# File lib/rspec/activerecord/expectations.rb, line 16
def rollback_a_transaction
  Matchers::TransactionMatcher.new(:rollback_queries)
end