Module Spec::Rails::Extensions::ActiveRecord::ClassMethods

  1. lib/spec/rails/extensions/active_record/base.rb

Methods

public instance

  1. record
  2. should have

Public instance methods

record ()

Alias for records

ModelClass.should have(:no).records
ModelClass.should have(1).record
ModelClass.should have(n).records

Extension to enhance should have on AR Model classes

[show source]
# File lib/spec/rails/extensions/active_record/base.rb, line 13
            def records
              find(:all)
            end