Delete duplication by using shared example for ActiveRecord.