Module: SimpleCrud::RSpec::Helpers
- Includes:
- Authentication, ControllerOptions, Models, Policies, Requests, Settings
- Defined in:
- lib/simple_crud/rspec/helpers.rb,
lib/simple_crud/rspec/helpers/models.rb,
lib/simple_crud/rspec/helpers/policies.rb,
lib/simple_crud/rspec/helpers/requests.rb,
lib/simple_crud/rspec/helpers/settings.rb,
lib/simple_crud/rspec/helpers/authentication.rb,
lib/simple_crud/rspec/helpers/controller_options.rb
Overview
Helpers available to the shared examples (and to apps that include them), composed from focused sub-modules: settings resolution, controller-option introspection, record building, authentication, request params and policy access.
Defined Under Namespace
Modules: Authentication, ControllerOptions, Models, Policies, Requests, Settings
Method Summary
Methods included from Policies
#make_policies_fail, #make_policies_succeed, #policy_class_object
Methods included from Requests
#body_params, #record_param, #request_format, #route_params, #unprocessable_status, #with_route_params
Methods included from Authentication
#authenticate_request, #current_user, #other_user, #owner_foreign_key, #owner_params
Methods included from Models
#create_record, #create_records, #model, #model_attributes, #model_class, #model_class_object, #model_params, #model_serializer, #params_for, #rendered_record, #rendered_records
Methods included from ControllerOptions
Methods included from Settings
#config, #created_record_check, #resolve, #setting, #simple_crud_settings, #with_config_override