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/genesis_rails/install/files/spec/support/genesis_rails.rb, line 4 def test_attributes attributes.delete_if do |key, value| ["id", "created_at", "updated_at"].include? key end end