class ActiveRecord::Base

Public Instance Methods

test_attributes() click to toggle source

this method returns the attributes to use on controller tests

# File lib/generators/silmarails/install/files/spec/support/silmarails.rb, line 4
def test_attributes
  attributes.delete_if do |key, value|
    ["id", "created_at", "updated_at"].include? key
  end
end