Sha256: 280cd87f9be61f340065909a001eed642b9c600ed0b3687b463491cb222722a5
Contents?: true
Size: 702 Bytes
Versions: 6
Compression:
Stored size: 702 Bytes
Contents
require 'rails_helper' RSpec.describe <%= class_name %>, type: :model do it_behaves_like "a base model", ransack_permitted_attributes: %w[<%= attributes_names.join(" ") %>] # it_behaves_like "a base model", # ransack_permitted_attributes: %w[<%= attributes_names.join(" ") %>], # ransack_permitted_associations: [] do # let(:auth_object) { :auth_object } <- default # let(:auth_object) { create(:user, :as_admin) } <- in caso di necessità di override # let(:new_user_ransack_permitted_attributes) { ransack_permitted_attributes } # let(:new_user_ransack_permitted_associations) { ransack_permitted_associations } # end end
Version data entries
6 entries across 6 versions & 1 rubygems