alchemrest 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +22 -0
- data/.rubocop_todo.yml +242 -0
- data/.ruby-version +1 -0
- data/Appraisals +19 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +378 -0
- data/Rakefile +29 -0
- data/alchemrest.gemspec +71 -0
- data/coach.yml +5 -0
- data/examples/bank_api/client.rb +31 -0
- data/examples/bank_api/data/account.rb +21 -0
- data/examples/bank_api/data/ach.rb +16 -0
- data/examples/bank_api/data/business_account.rb +22 -0
- data/examples/bank_api/data/card.rb +21 -0
- data/examples/bank_api/data/check.rb +19 -0
- data/examples/bank_api/data/product.rb +20 -0
- data/examples/bank_api/data/transaction.rb +49 -0
- data/examples/bank_api/data/user.rb +27 -0
- data/examples/bank_api/factories.rb +68 -0
- data/examples/bank_api/graph_visualization.rb +45 -0
- data/examples/bank_api/positive_interest_string.rb +33 -0
- data/examples/bank_api/requests/delete_user.rb +17 -0
- data/examples/bank_api/requests/get_business_account.rb +24 -0
- data/examples/bank_api/requests/get_products.rb +12 -0
- data/examples/bank_api/requests/get_transactions.rb +34 -0
- data/examples/bank_api/requests/get_user.rb +19 -0
- data/examples/bank_api/requests/post_transaction.rb +20 -0
- data/examples/bank_api/requests/update_user.rb +28 -0
- data/examples/bank_api/root.rb +52 -0
- data/examples/bank_api.rb +33 -0
- data/gemfiles/faraday_2.gemfile +9 -0
- data/gemfiles/faraday_2.gemfile.lock +363 -0
- data/gemfiles/rails_7_0.gemfile.lock +341 -0
- data/gemfiles/rails_7_2.gemfile +9 -0
- data/gemfiles/rails_7_2.gemfile.lock +384 -0
- data/gemfiles/rails_8_0.gemfile +9 -0
- data/gemfiles/rails_8_0.gemfile.lock +385 -0
- data/lib/alchemrest/circuit_breaker.rb +84 -0
- data/lib/alchemrest/client/configuration/connection.rb +83 -0
- data/lib/alchemrest/client/configuration.rb +89 -0
- data/lib/alchemrest/client.rb +48 -0
- data/lib/alchemrest/cop.rb +8 -0
- data/lib/alchemrest/data/capture_configuration.rb +77 -0
- data/lib/alchemrest/data/field.rb +36 -0
- data/lib/alchemrest/data/graph.rb +40 -0
- data/lib/alchemrest/data/record.rb +60 -0
- data/lib/alchemrest/data/schema.rb +80 -0
- data/lib/alchemrest/data.rb +9 -0
- data/lib/alchemrest/endpoint_definition.rb +47 -0
- data/lib/alchemrest/error.rb +122 -0
- data/lib/alchemrest/factory_bot.rb +64 -0
- data/lib/alchemrest/faraday_middleware/external_api_instrumentation.rb +24 -0
- data/lib/alchemrest/faraday_middleware/json_parser.rb +30 -0
- data/lib/alchemrest/faraday_middleware/kill_switch.rb +22 -0
- data/lib/alchemrest/faraday_middleware/underscore_response.rb +24 -0
- data/lib/alchemrest/hash_path.rb +81 -0
- data/lib/alchemrest/http_request.rb +75 -0
- data/lib/alchemrest/kill_switch/adapters.rb +88 -0
- data/lib/alchemrest/kill_switch.rb +31 -0
- data/lib/alchemrest/railtie.rb +25 -0
- data/lib/alchemrest/request/endpoint.rb +29 -0
- data/lib/alchemrest/request/returns.rb +46 -0
- data/lib/alchemrest/request.rb +80 -0
- data/lib/alchemrest/request_definition/builder.rb +13 -0
- data/lib/alchemrest/request_definition.rb +26 -0
- data/lib/alchemrest/response/pipeline/extract_payload.rb +64 -0
- data/lib/alchemrest/response/pipeline/final.rb +11 -0
- data/lib/alchemrest/response/pipeline/omit.rb +46 -0
- data/lib/alchemrest/response/pipeline/sanitize.rb +59 -0
- data/lib/alchemrest/response/pipeline/transform.rb +26 -0
- data/lib/alchemrest/response/pipeline/was_successful.rb +29 -0
- data/lib/alchemrest/response/pipeline.rb +71 -0
- data/lib/alchemrest/response.rb +73 -0
- data/lib/alchemrest/response_captured_handler.rb +68 -0
- data/lib/alchemrest/result/halt.rb +15 -0
- data/lib/alchemrest/result/try_helpers.rb +16 -0
- data/lib/alchemrest/result.rb +128 -0
- data/lib/alchemrest/root.rb +77 -0
- data/lib/alchemrest/transforms/base_to_type_transform_registry.rb +42 -0
- data/lib/alchemrest/transforms/constrainable.rb +41 -0
- data/lib/alchemrest/transforms/constraint/block.rb +22 -0
- data/lib/alchemrest/transforms/constraint/greater_than.rb +19 -0
- data/lib/alchemrest/transforms/constraint/greater_than_or_eq.rb +19 -0
- data/lib/alchemrest/transforms/constraint/in_list.rb +19 -0
- data/lib/alchemrest/transforms/constraint/is_instance_of.rb +19 -0
- data/lib/alchemrest/transforms/constraint/is_uuid.rb +19 -0
- data/lib/alchemrest/transforms/constraint/less_than.rb +19 -0
- data/lib/alchemrest/transforms/constraint/less_than_or_eq.rb +19 -0
- data/lib/alchemrest/transforms/constraint/matches_regex.rb +19 -0
- data/lib/alchemrest/transforms/constraint/max_length.rb +19 -0
- data/lib/alchemrest/transforms/constraint/min_length.rb +19 -0
- data/lib/alchemrest/transforms/constraint.rb +17 -0
- data/lib/alchemrest/transforms/constraint_builder/for_number.rb +25 -0
- data/lib/alchemrest/transforms/constraint_builder/for_string.rb +21 -0
- data/lib/alchemrest/transforms/constraint_builder.rb +15 -0
- data/lib/alchemrest/transforms/date_transform.rb +30 -0
- data/lib/alchemrest/transforms/enum.rb +52 -0
- data/lib/alchemrest/transforms/epoch_time.rb +32 -0
- data/lib/alchemrest/transforms/from_chain.rb +15 -0
- data/lib/alchemrest/transforms/from_number/to_type_transform_registry.rb +18 -0
- data/lib/alchemrest/transforms/from_number.rb +47 -0
- data/lib/alchemrest/transforms/from_string/to_type_transform_registry.rb +17 -0
- data/lib/alchemrest/transforms/from_string.rb +36 -0
- data/lib/alchemrest/transforms/from_type/empty_to_type_transform_registry.rb +14 -0
- data/lib/alchemrest/transforms/from_type.rb +64 -0
- data/lib/alchemrest/transforms/iso_time.rb +58 -0
- data/lib/alchemrest/transforms/json_number.rb +26 -0
- data/lib/alchemrest/transforms/loose_hash.rb +96 -0
- data/lib/alchemrest/transforms/money_transform.rb +42 -0
- data/lib/alchemrest/transforms/number.rb +27 -0
- data/lib/alchemrest/transforms/output_type.rb +65 -0
- data/lib/alchemrest/transforms/to_decimal.rb +22 -0
- data/lib/alchemrest/transforms/to_type/from_string_to_time_selector.rb +29 -0
- data/lib/alchemrest/transforms/to_type/transforms_selector.rb +61 -0
- data/lib/alchemrest/transforms/to_type.rb +86 -0
- data/lib/alchemrest/transforms/typed.rb +32 -0
- data/lib/alchemrest/transforms/union.rb +44 -0
- data/lib/alchemrest/transforms/with_constraint.rb +26 -0
- data/lib/alchemrest/transforms.rb +93 -0
- data/lib/alchemrest/url_builder/encoders.rb +39 -0
- data/lib/alchemrest/url_builder/options.rb +33 -0
- data/lib/alchemrest/url_builder.rb +31 -0
- data/lib/alchemrest/version.rb +5 -0
- data/lib/alchemrest/webmock_helpers.rb +27 -0
- data/lib/alchemrest.rb +159 -0
- data/lib/generators/alchemrest/kill_switch_migration_generator.rb +27 -0
- data/lib/generators/alchemrest/templates/kill_switch_migration.rb.erb +17 -0
- data/lib/rubocop/cop/alchemrest/define_request_using_with_params.rb +53 -0
- data/lib/rubocop/cop/alchemrest/endpoint_definition_using_generic_params.rb +55 -0
- data/lib/rubocop/cop/alchemrest/request_hash_returning_block.rb +54 -0
- data/lib/rubocop/cop/alchemrest/time_transform_with_no_zone.rb +56 -0
- data/lib/tapioca/dsl/compilers/alchemrest_data.rb +84 -0
- data/lib/tapioca/dsl/compilers/alchemrest_root.rb +68 -0
- data/mutant.yml +16 -0
- data/rbi/alchemrest/result.rbi +80 -0
- data/rbi/alchemrest.rbi +246 -0
- data/sorbet/config +5 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/abstract_type@0.0.7.rbi +41 -0
- data/sorbet/rbi/gems/actionpack@8.0.4.rbi +11733 -0
- data/sorbet/rbi/gems/actionview@8.0.4.rbi +6560 -0
- data/sorbet/rbi/gems/activemodel@8.0.4.rbi +2891 -0
- data/sorbet/rbi/gems/activesupport@8.0.4.rbi +9621 -0
- data/sorbet/rbi/gems/adamantium@0.2.0.rbi +144 -0
- data/sorbet/rbi/gems/addressable@2.8.7.rbi +779 -0
- data/sorbet/rbi/gems/anima@0.3.2.rbi +103 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +107 -0
- data/sorbet/rbi/gems/base64@0.3.0.rbi +52 -0
- data/sorbet/rbi/gems/benchmark@0.5.0.rbi +153 -0
- data/sorbet/rbi/gems/bigdecimal@3.3.1.rbi +77 -0
- data/sorbet/rbi/gems/builder@3.3.0.rbi +9 -0
- data/sorbet/rbi/gems/circuitbox@2.0.0.rbi +297 -0
- data/sorbet/rbi/gems/concord@0.1.6.rbi +51 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi +4716 -0
- data/sorbet/rbi/gems/connection_pool@2.5.4.rbi +9 -0
- data/sorbet/rbi/gems/crack@1.0.0.rbi +110 -0
- data/sorbet/rbi/gems/crass@1.0.6.rbi +294 -0
- data/sorbet/rbi/gems/date@3.4.1.rbi +58 -0
- data/sorbet/rbi/gems/drb@2.2.3.rbi +639 -0
- data/sorbet/rbi/gems/equalizer@0.0.11.rbi +38 -0
- data/sorbet/rbi/gems/erubi@1.13.1.rbi +85 -0
- data/sorbet/rbi/gems/factory_bot@6.5.0.rbi +1529 -0
- data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +181 -0
- data/sorbet/rbi/gems/faraday-em_synchrony@1.0.1.rbi +120 -0
- data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +128 -0
- data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +123 -0
- data/sorbet/rbi/gems/faraday-multipart@1.2.0.rbi +190 -0
- data/sorbet/rbi/gems/faraday-net_http@1.0.2.rbi +140 -0
- data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +116 -0
- data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +119 -0
- data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +113 -0
- data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +149 -0
- data/sorbet/rbi/gems/faraday@1.10.5.rbi +1620 -0
- data/sorbet/rbi/gems/hansi@0.2.1.rbi +9 -0
- data/sorbet/rbi/gems/hashdiff@1.1.2.rbi +174 -0
- data/sorbet/rbi/gems/i18n@1.14.7.rbi +1328 -0
- data/sorbet/rbi/gems/ice_nine@0.11.2.rbi +145 -0
- data/sorbet/rbi/gems/io-console@0.8.0.rbi +9 -0
- data/sorbet/rbi/gems/json@2.9.1.rbi +282 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +8057 -0
- data/sorbet/rbi/gems/logger@1.7.0.rbi +260 -0
- data/sorbet/rbi/gems/loofah@2.24.0.rbi +571 -0
- data/sorbet/rbi/gems/memoizable@0.4.2.rbi +131 -0
- data/sorbet/rbi/gems/memosa@0.8.2.rbi +185 -0
- data/sorbet/rbi/gems/minitest@5.26.0.rbi +824 -0
- data/sorbet/rbi/gems/money@6.19.0.rbi +815 -0
- data/sorbet/rbi/gems/morpher@0.4.2.rbi +388 -0
- data/sorbet/rbi/gems/mprelude@0.1.0.rbi +140 -0
- data/sorbet/rbi/gems/multi_json@1.15.0.rbi +180 -0
- data/sorbet/rbi/gems/multipart-post@2.4.1.rbi +154 -0
- data/sorbet/rbi/gems/mustermann-contrib@3.0.3.rbi +9 -0
- data/sorbet/rbi/gems/mustermann@3.0.3.rbi +809 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +112 -0
- data/sorbet/rbi/gems/nokogiri@1.19.1.rbi +3412 -0
- data/sorbet/rbi/gems/parallel@1.26.3.rbi +234 -0
- data/sorbet/rbi/gems/parser@3.3.7.0.rbi +4877 -0
- data/sorbet/rbi/gems/pp@0.6.2.rbi +176 -0
- data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +155 -0
- data/sorbet/rbi/gems/prism@1.5.1.rbi +26368 -0
- data/sorbet/rbi/gems/procto@0.0.3.rbi +9 -0
- data/sorbet/rbi/gems/psych@5.2.3.rbi +806 -0
- data/sorbet/rbi/gems/public_suffix@6.0.1.rbi +267 -0
- data/sorbet/rbi/gems/racc@1.8.1.rbi +120 -0
- data/sorbet/rbi/gems/rack-session@2.1.1.rbi +458 -0
- data/sorbet/rbi/gems/rack-test@2.2.0.rbi +405 -0
- data/sorbet/rbi/gems/rack@3.1.14.rbi +2774 -0
- data/sorbet/rbi/gems/rackup@2.2.1.rbi +132 -0
- data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +266 -0
- data/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi +545 -0
- data/sorbet/rbi/gems/railties@8.0.4.rbi +2150 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +333 -0
- data/sorbet/rbi/gems/rake@13.2.1.rbi +2054 -0
- data/sorbet/rbi/gems/rbi@0.2.3.rbi +3961 -0
- data/sorbet/rbi/gems/rdoc@6.13.1.rbi +6784 -0
- data/sorbet/rbi/gems/regexp_parser@2.11.3.rbi +3020 -0
- data/sorbet/rbi/gems/reline@0.6.0.rbi +9 -0
- data/sorbet/rbi/gems/rexml@3.4.2.rbi +1777 -0
- data/sorbet/rbi/gems/rubocop-ast@1.38.0.rbi +5293 -0
- data/sorbet/rbi/gems/rubocop@1.71.1.rbi +31846 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +980 -0
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
- data/sorbet/rbi/gems/securerandom@0.4.1.rbi +33 -0
- data/sorbet/rbi/gems/sentry-ruby@5.22.1.rbi +3782 -0
- data/sorbet/rbi/gems/spoom@1.5.1.rbi +4321 -0
- data/sorbet/rbi/gems/stringio@3.1.2.rbi +9 -0
- data/sorbet/rbi/gems/tapioca@0.16.8.rbi +3399 -0
- data/sorbet/rbi/gems/thor@1.3.2.rbi +2012 -0
- data/sorbet/rbi/gems/thread_safe@0.3.6.rbi +711 -0
- data/sorbet/rbi/gems/timeout@0.4.4.rbi +80 -0
- data/sorbet/rbi/gems/tsort@0.2.0.rbi +50 -0
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +1677 -0
- data/sorbet/rbi/gems/unicode-display_width@2.6.0.rbi +62 -0
- data/sorbet/rbi/gems/uri@1.1.0.rbi +760 -0
- data/sorbet/rbi/gems/useragent@0.16.11.rbi +9 -0
- data/sorbet/rbi/gems/webmock@3.24.0.rbi +1362 -0
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +345 -0
- data/sorbet/rbi/gems/yard@0.9.37.rbi +8795 -0
- data/sorbet/rbi/gems/zeitwerk@2.7.1.rbi +589 -0
- data/sorbet/tapioca/config.yml +45 -0
- data/sorbet/tapioca/require.rb +8 -0
- data/sorbet/tapioca/sorbet/rbi/dsl/.gitattributes +1 -0
- data/sorbet/tapioca/sorbet/rbi/dsl/active_support/callbacks.rbi +23 -0
- metadata +737 -0
|
@@ -0,0 +1,1529 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
# DO NOT EDIT MANUALLY
|
|
4
|
+
# This is an autogenerated file for types exported from the `factory_bot` gem.
|
|
5
|
+
# Please instead update this file by running `bin/tapioca gem factory_bot`.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# source://factory_bot//lib/factory_bot/internal.rb#1
|
|
9
|
+
module FactoryBot
|
|
10
|
+
extend ::FactoryBot::Syntax::Methods
|
|
11
|
+
extend ::FactoryBot::Syntax::Default
|
|
12
|
+
|
|
13
|
+
class << self
|
|
14
|
+
# source://factory_bot//lib/factory_bot/aliases.rb#3
|
|
15
|
+
def aliases; end
|
|
16
|
+
|
|
17
|
+
# source://factory_bot//lib/factory_bot/aliases.rb#3
|
|
18
|
+
def aliases=(_arg0); end
|
|
19
|
+
|
|
20
|
+
# source://factory_bot//lib/factory_bot/aliases.rb#11
|
|
21
|
+
def aliases_for(attribute); end
|
|
22
|
+
|
|
23
|
+
# source://factory_bot//lib/factory_bot.rb#58
|
|
24
|
+
def automatically_define_enum_traits; end
|
|
25
|
+
|
|
26
|
+
# source://factory_bot//lib/factory_bot.rb#58
|
|
27
|
+
def automatically_define_enum_traits=(val); end
|
|
28
|
+
|
|
29
|
+
# source://factory_bot//lib/factory_bot.rb#79
|
|
30
|
+
def build_stubbed_starting_id=(starting_id); end
|
|
31
|
+
|
|
32
|
+
# source://factory_bot//lib/factory_bot/find_definitions.rb#7
|
|
33
|
+
def definition_file_paths; end
|
|
34
|
+
|
|
35
|
+
# source://factory_bot//lib/factory_bot/find_definitions.rb#7
|
|
36
|
+
def definition_file_paths=(_arg0); end
|
|
37
|
+
|
|
38
|
+
# source://factory_bot//lib/factory_bot.rb#84
|
|
39
|
+
def factories(*_arg0, **_arg1, &_arg2); end
|
|
40
|
+
|
|
41
|
+
# source://factory_bot//lib/factory_bot/find_definitions.rb#12
|
|
42
|
+
def find_definitions; end
|
|
43
|
+
|
|
44
|
+
# source://factory_bot//lib/factory_bot.rb#68
|
|
45
|
+
def lint(*args); end
|
|
46
|
+
|
|
47
|
+
# source://factory_bot//lib/factory_bot.rb#84
|
|
48
|
+
def register_strategy(strategy_name, strategy_class, &_arg2); end
|
|
49
|
+
|
|
50
|
+
# source://factory_bot//lib/factory_bot/reload.rb#2
|
|
51
|
+
def reload; end
|
|
52
|
+
|
|
53
|
+
# source://factory_bot//lib/factory_bot.rb#84
|
|
54
|
+
def rewind_sequences(&_arg0); end
|
|
55
|
+
|
|
56
|
+
# source://factory_bot//lib/factory_bot.rb#84
|
|
57
|
+
def strategy_by_name(name, &_arg1); end
|
|
58
|
+
|
|
59
|
+
# source://factory_bot//lib/factory_bot.rb#55
|
|
60
|
+
def use_parent_strategy; end
|
|
61
|
+
|
|
62
|
+
# source://factory_bot//lib/factory_bot.rb#55
|
|
63
|
+
def use_parent_strategy=(val); end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# source://factory_bot//lib/factory_bot/errors.rb#3
|
|
68
|
+
class FactoryBot::AssociationDefinitionError < ::RuntimeError; end
|
|
69
|
+
|
|
70
|
+
# source://factory_bot//lib/factory_bot/attribute/dynamic.rb#2
|
|
71
|
+
class FactoryBot::Attribute
|
|
72
|
+
# source://factory_bot//lib/factory_bot/attribute.rb#10
|
|
73
|
+
def initialize(name, ignored); end
|
|
74
|
+
|
|
75
|
+
# source://factory_bot//lib/factory_bot/attribute.rb#23
|
|
76
|
+
def alias_for?(attr); end
|
|
77
|
+
|
|
78
|
+
# source://factory_bot//lib/factory_bot/attribute.rb#19
|
|
79
|
+
def association?; end
|
|
80
|
+
|
|
81
|
+
# source://factory_bot//lib/factory_bot/attribute.rb#8
|
|
82
|
+
def ignored; end
|
|
83
|
+
|
|
84
|
+
# source://factory_bot//lib/factory_bot/attribute.rb#8
|
|
85
|
+
def name; end
|
|
86
|
+
|
|
87
|
+
# source://factory_bot//lib/factory_bot/attribute.rb#15
|
|
88
|
+
def to_proc; end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# source://factory_bot//lib/factory_bot/attribute/association.rb#4
|
|
92
|
+
class FactoryBot::Attribute::Association < ::FactoryBot::Attribute
|
|
93
|
+
# source://factory_bot//lib/factory_bot/attribute/association.rb#7
|
|
94
|
+
def initialize(name, factory, overrides); end
|
|
95
|
+
|
|
96
|
+
# source://factory_bot//lib/factory_bot/attribute/association.rb#22
|
|
97
|
+
def association?; end
|
|
98
|
+
|
|
99
|
+
# source://factory_bot//lib/factory_bot/attribute/association.rb#5
|
|
100
|
+
def factory; end
|
|
101
|
+
|
|
102
|
+
# source://factory_bot//lib/factory_bot/attribute/association.rb#13
|
|
103
|
+
def to_proc; end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# source://factory_bot//lib/factory_bot/attribute/dynamic.rb#4
|
|
107
|
+
class FactoryBot::Attribute::Dynamic < ::FactoryBot::Attribute
|
|
108
|
+
# source://factory_bot//lib/factory_bot/attribute/dynamic.rb#5
|
|
109
|
+
def initialize(name, ignored, block); end
|
|
110
|
+
|
|
111
|
+
# source://factory_bot//lib/factory_bot/attribute/dynamic.rb#10
|
|
112
|
+
def to_proc; end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# source://factory_bot//lib/factory_bot/attribute/sequence.rb#4
|
|
116
|
+
class FactoryBot::Attribute::Sequence < ::FactoryBot::Attribute
|
|
117
|
+
# source://factory_bot//lib/factory_bot/attribute/sequence.rb#5
|
|
118
|
+
def initialize(name, sequence, ignored); end
|
|
119
|
+
|
|
120
|
+
# source://factory_bot//lib/factory_bot/attribute/sequence.rb#10
|
|
121
|
+
def to_proc; end
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#3
|
|
125
|
+
class FactoryBot::AttributeAssigner
|
|
126
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#4
|
|
127
|
+
def initialize(evaluator, build_class, &instance_builder); end
|
|
128
|
+
|
|
129
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#22
|
|
130
|
+
def hash; end
|
|
131
|
+
|
|
132
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#12
|
|
133
|
+
def object; end
|
|
134
|
+
|
|
135
|
+
private
|
|
136
|
+
|
|
137
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#98
|
|
138
|
+
def alias_names_to_ignore; end
|
|
139
|
+
|
|
140
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#86
|
|
141
|
+
def association_names; end
|
|
142
|
+
|
|
143
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#70
|
|
144
|
+
def attribute_names_to_assign; end
|
|
145
|
+
|
|
146
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#66
|
|
147
|
+
def attributes_to_set_on_hash; end
|
|
148
|
+
|
|
149
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#62
|
|
150
|
+
def attributes_to_set_on_instance; end
|
|
151
|
+
|
|
152
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#50
|
|
153
|
+
def build_class_instance; end
|
|
154
|
+
|
|
155
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#54
|
|
156
|
+
def build_hash; end
|
|
157
|
+
|
|
158
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#39
|
|
159
|
+
def decorated_evaluator; end
|
|
160
|
+
|
|
161
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#58
|
|
162
|
+
def get(attribute_name); end
|
|
163
|
+
|
|
164
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#94
|
|
165
|
+
def hash_instance_methods_to_respond_to; end
|
|
166
|
+
|
|
167
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#106
|
|
168
|
+
def ignorable_alias?(attribute, override); end
|
|
169
|
+
|
|
170
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#82
|
|
171
|
+
def ignored_attribute_names; end
|
|
172
|
+
|
|
173
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#32
|
|
174
|
+
def method_tracking_evaluator; end
|
|
175
|
+
|
|
176
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#46
|
|
177
|
+
def methods_invoked_on_evaluator; end
|
|
178
|
+
|
|
179
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#78
|
|
180
|
+
def non_ignored_attribute_names; end
|
|
181
|
+
|
|
182
|
+
# source://factory_bot//lib/factory_bot/attribute_assigner.rb#90
|
|
183
|
+
def override_names; end
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# source://factory_bot//lib/factory_bot/errors.rb#18
|
|
187
|
+
class FactoryBot::AttributeDefinitionError < ::RuntimeError; end
|
|
188
|
+
|
|
189
|
+
# source://factory_bot//lib/factory_bot/attribute_list.rb#3
|
|
190
|
+
class FactoryBot::AttributeList
|
|
191
|
+
include ::Enumerable
|
|
192
|
+
|
|
193
|
+
# source://factory_bot//lib/factory_bot/attribute_list.rb#6
|
|
194
|
+
def initialize(name = T.unsafe(nil), attributes = T.unsafe(nil)); end
|
|
195
|
+
|
|
196
|
+
# source://factory_bot//lib/factory_bot/attribute_list.rb#38
|
|
197
|
+
def apply_attributes(attributes_to_apply); end
|
|
198
|
+
|
|
199
|
+
# source://factory_bot//lib/factory_bot/attribute_list.rb#26
|
|
200
|
+
def associations; end
|
|
201
|
+
|
|
202
|
+
# source://factory_bot//lib/factory_bot/attribute_list.rb#11
|
|
203
|
+
def define_attribute(attribute); end
|
|
204
|
+
|
|
205
|
+
# source://factory_bot//lib/factory_bot/attribute_list.rb#18
|
|
206
|
+
def each(&block); end
|
|
207
|
+
|
|
208
|
+
# source://factory_bot//lib/factory_bot/attribute_list.rb#30
|
|
209
|
+
def ignored; end
|
|
210
|
+
|
|
211
|
+
# source://factory_bot//lib/factory_bot/attribute_list.rb#22
|
|
212
|
+
def names; end
|
|
213
|
+
|
|
214
|
+
# source://factory_bot//lib/factory_bot/attribute_list.rb#34
|
|
215
|
+
def non_ignored; end
|
|
216
|
+
|
|
217
|
+
private
|
|
218
|
+
|
|
219
|
+
# source://factory_bot//lib/factory_bot/attribute_list.rb#44
|
|
220
|
+
def add_attribute(attribute); end
|
|
221
|
+
|
|
222
|
+
# source://factory_bot//lib/factory_bot/attribute_list.rb#62
|
|
223
|
+
def attribute_defined?(attribute_name); end
|
|
224
|
+
|
|
225
|
+
# source://factory_bot//lib/factory_bot/attribute_list.rb#49
|
|
226
|
+
def ensure_attribute_not_defined!(attribute); end
|
|
227
|
+
|
|
228
|
+
# source://factory_bot//lib/factory_bot/attribute_list.rb#55
|
|
229
|
+
def ensure_attribute_not_self_referencing!(attribute); end
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# source://factory_bot//lib/factory_bot/callback.rb#2
|
|
233
|
+
class FactoryBot::Callback
|
|
234
|
+
# source://factory_bot//lib/factory_bot/callback.rb#5
|
|
235
|
+
def initialize(name, block); end
|
|
236
|
+
|
|
237
|
+
# source://factory_bot//lib/factory_bot/callback.rb#18
|
|
238
|
+
def ==(other); end
|
|
239
|
+
|
|
240
|
+
# source://factory_bot//lib/factory_bot/callback.rb#3
|
|
241
|
+
def name; end
|
|
242
|
+
|
|
243
|
+
# source://factory_bot//lib/factory_bot/callback.rb#10
|
|
244
|
+
def run(instance, evaluator); end
|
|
245
|
+
|
|
246
|
+
protected
|
|
247
|
+
|
|
248
|
+
# source://factory_bot//lib/factory_bot/callback.rb#25
|
|
249
|
+
def block; end
|
|
250
|
+
|
|
251
|
+
private
|
|
252
|
+
|
|
253
|
+
# source://factory_bot//lib/factory_bot/callback.rb#29
|
|
254
|
+
def syntax_runner; end
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# source://factory_bot//lib/factory_bot/callbacks_observer.rb#3
|
|
258
|
+
class FactoryBot::CallbacksObserver
|
|
259
|
+
# source://factory_bot//lib/factory_bot/callbacks_observer.rb#4
|
|
260
|
+
def initialize(callbacks, evaluator); end
|
|
261
|
+
|
|
262
|
+
# source://factory_bot//lib/factory_bot/callbacks_observer.rb#9
|
|
263
|
+
def update(name, result_instance); end
|
|
264
|
+
|
|
265
|
+
private
|
|
266
|
+
|
|
267
|
+
# source://factory_bot//lib/factory_bot/callbacks_observer.rb#17
|
|
268
|
+
def callbacks_by_name(name); end
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# source://factory_bot//lib/factory_bot/configuration.rb#3
|
|
272
|
+
class FactoryBot::Configuration
|
|
273
|
+
# source://factory_bot//lib/factory_bot/configuration.rb#13
|
|
274
|
+
def initialize; end
|
|
275
|
+
|
|
276
|
+
# source://factory_bot//lib/factory_bot/configuration.rb#26
|
|
277
|
+
def after(*_arg0, **_arg1, &_arg2); end
|
|
278
|
+
|
|
279
|
+
# source://factory_bot//lib/factory_bot/configuration.rb#26
|
|
280
|
+
def before(*_arg0, **_arg1, &_arg2); end
|
|
281
|
+
|
|
282
|
+
# source://factory_bot//lib/factory_bot/configuration.rb#26
|
|
283
|
+
def callback(*_arg0, **_arg1, &_arg2); end
|
|
284
|
+
|
|
285
|
+
# source://factory_bot//lib/factory_bot/configuration.rb#4
|
|
286
|
+
def callback_names; end
|
|
287
|
+
|
|
288
|
+
# source://factory_bot//lib/factory_bot/configuration.rb#26
|
|
289
|
+
def callbacks(*_arg0, **_arg1, &_arg2); end
|
|
290
|
+
|
|
291
|
+
# source://factory_bot//lib/factory_bot/configuration.rb#26
|
|
292
|
+
def constructor(*_arg0, **_arg1, &_arg2); end
|
|
293
|
+
|
|
294
|
+
# source://factory_bot//lib/factory_bot/configuration.rb#4
|
|
295
|
+
def factories; end
|
|
296
|
+
|
|
297
|
+
# source://factory_bot//lib/factory_bot/configuration.rb#29
|
|
298
|
+
def initialize_with(&block); end
|
|
299
|
+
|
|
300
|
+
# source://factory_bot//lib/factory_bot/configuration.rb#4
|
|
301
|
+
def inline_sequences; end
|
|
302
|
+
|
|
303
|
+
# source://factory_bot//lib/factory_bot/configuration.rb#4
|
|
304
|
+
def sequences; end
|
|
305
|
+
|
|
306
|
+
# source://factory_bot//lib/factory_bot/configuration.rb#26
|
|
307
|
+
def skip_create(*_arg0, **_arg1, &_arg2); end
|
|
308
|
+
|
|
309
|
+
# source://factory_bot//lib/factory_bot/configuration.rb#4
|
|
310
|
+
def strategies; end
|
|
311
|
+
|
|
312
|
+
# source://factory_bot//lib/factory_bot/configuration.rb#26
|
|
313
|
+
def to_create(*_arg0, **_arg1, &_arg2); end
|
|
314
|
+
|
|
315
|
+
# source://factory_bot//lib/factory_bot/configuration.rb#4
|
|
316
|
+
def traits; end
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# source://factory_bot//lib/factory_bot/declaration/dynamic.rb#2
|
|
320
|
+
class FactoryBot::Declaration
|
|
321
|
+
# source://factory_bot//lib/factory_bot/declaration.rb#10
|
|
322
|
+
def initialize(name, ignored = T.unsafe(nil)); end
|
|
323
|
+
|
|
324
|
+
# source://factory_bot//lib/factory_bot/declaration.rb#8
|
|
325
|
+
def name; end
|
|
326
|
+
|
|
327
|
+
# source://factory_bot//lib/factory_bot/declaration.rb#15
|
|
328
|
+
def to_attributes; end
|
|
329
|
+
|
|
330
|
+
protected
|
|
331
|
+
|
|
332
|
+
# source://factory_bot//lib/factory_bot/declaration.rb#21
|
|
333
|
+
def ignored; end
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# source://factory_bot//lib/factory_bot/declaration/association.rb#4
|
|
337
|
+
class FactoryBot::Declaration::Association < ::FactoryBot::Declaration
|
|
338
|
+
# source://factory_bot//lib/factory_bot/declaration/association.rb#5
|
|
339
|
+
def initialize(name, *options); end
|
|
340
|
+
|
|
341
|
+
# source://factory_bot//lib/factory_bot/declaration/association.rb#13
|
|
342
|
+
def ==(other); end
|
|
343
|
+
|
|
344
|
+
protected
|
|
345
|
+
|
|
346
|
+
# source://factory_bot//lib/factory_bot/declaration/association.rb#21
|
|
347
|
+
def options; end
|
|
348
|
+
|
|
349
|
+
private
|
|
350
|
+
|
|
351
|
+
# source://factory_bot//lib/factory_bot/declaration/association.rb#27
|
|
352
|
+
def build; end
|
|
353
|
+
|
|
354
|
+
# source://factory_bot//lib/factory_bot/declaration/association.rb#25
|
|
355
|
+
def factory_name; end
|
|
356
|
+
|
|
357
|
+
# source://factory_bot//lib/factory_bot/declaration/association.rb#25
|
|
358
|
+
def overrides; end
|
|
359
|
+
|
|
360
|
+
# source://factory_bot//lib/factory_bot/declaration/association.rb#39
|
|
361
|
+
def raise_if_arguments_are_declarations!; end
|
|
362
|
+
|
|
363
|
+
# source://factory_bot//lib/factory_bot/declaration/association.rb#25
|
|
364
|
+
def traits; end
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
# source://factory_bot//lib/factory_bot/declaration/dynamic.rb#4
|
|
368
|
+
class FactoryBot::Declaration::Dynamic < ::FactoryBot::Declaration
|
|
369
|
+
# source://factory_bot//lib/factory_bot/declaration/dynamic.rb#5
|
|
370
|
+
def initialize(name, ignored = T.unsafe(nil), block = T.unsafe(nil)); end
|
|
371
|
+
|
|
372
|
+
# source://factory_bot//lib/factory_bot/declaration/dynamic.rb#10
|
|
373
|
+
def ==(other); end
|
|
374
|
+
|
|
375
|
+
protected
|
|
376
|
+
|
|
377
|
+
# source://factory_bot//lib/factory_bot/declaration/dynamic.rb#19
|
|
378
|
+
def block; end
|
|
379
|
+
|
|
380
|
+
private
|
|
381
|
+
|
|
382
|
+
# source://factory_bot//lib/factory_bot/declaration/dynamic.rb#23
|
|
383
|
+
def build; end
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
# source://factory_bot//lib/factory_bot/declaration/implicit.rb#4
|
|
387
|
+
class FactoryBot::Declaration::Implicit < ::FactoryBot::Declaration
|
|
388
|
+
# source://factory_bot//lib/factory_bot/declaration/implicit.rb#5
|
|
389
|
+
def initialize(name, factory = T.unsafe(nil), ignored = T.unsafe(nil)); end
|
|
390
|
+
|
|
391
|
+
# source://factory_bot//lib/factory_bot/declaration/implicit.rb#10
|
|
392
|
+
def ==(other); end
|
|
393
|
+
|
|
394
|
+
protected
|
|
395
|
+
|
|
396
|
+
# source://factory_bot//lib/factory_bot/declaration/implicit.rb#19
|
|
397
|
+
def factory; end
|
|
398
|
+
|
|
399
|
+
private
|
|
400
|
+
|
|
401
|
+
# source://factory_bot//lib/factory_bot/declaration/implicit.rb#23
|
|
402
|
+
def build; end
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# source://factory_bot//lib/factory_bot/declaration_list.rb#3
|
|
406
|
+
class FactoryBot::DeclarationList
|
|
407
|
+
include ::Enumerable
|
|
408
|
+
|
|
409
|
+
# source://factory_bot//lib/factory_bot/declaration_list.rb#6
|
|
410
|
+
def initialize(name = T.unsafe(nil)); end
|
|
411
|
+
|
|
412
|
+
# source://factory_bot//lib/factory_bot/declaration_list.rb#23
|
|
413
|
+
def attributes; end
|
|
414
|
+
|
|
415
|
+
# source://factory_bot//lib/factory_bot/declaration_list.rb#12
|
|
416
|
+
def declare_attribute(declaration); end
|
|
417
|
+
|
|
418
|
+
# source://factory_bot//lib/factory_bot/declaration_list.rb#31
|
|
419
|
+
def each(&block); end
|
|
420
|
+
|
|
421
|
+
# source://factory_bot//lib/factory_bot/declaration_list.rb#19
|
|
422
|
+
def overridable; end
|
|
423
|
+
|
|
424
|
+
private
|
|
425
|
+
|
|
426
|
+
# source://factory_bot//lib/factory_bot/declaration_list.rb#37
|
|
427
|
+
def delete_declaration(declaration); end
|
|
428
|
+
|
|
429
|
+
# source://factory_bot//lib/factory_bot/declaration_list.rb#45
|
|
430
|
+
def overridable?; end
|
|
431
|
+
|
|
432
|
+
# source://factory_bot//lib/factory_bot/declaration_list.rb#41
|
|
433
|
+
def to_attributes; end
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
# source://factory_bot//lib/factory_bot/decorator.rb#2
|
|
437
|
+
class FactoryBot::Decorator < ::BasicObject
|
|
438
|
+
# source://factory_bot//lib/factory_bot/decorator.rb#5
|
|
439
|
+
def initialize(component); end
|
|
440
|
+
|
|
441
|
+
# source://factory_bot//lib/factory_bot/decorator.rb#9
|
|
442
|
+
def method_missing(*_arg0, **_arg1, &_arg2); end
|
|
443
|
+
|
|
444
|
+
# source://factory_bot//lib/factory_bot/decorator.rb#13
|
|
445
|
+
def send(*_arg0, **_arg1, &_arg2); end
|
|
446
|
+
|
|
447
|
+
private
|
|
448
|
+
|
|
449
|
+
# source://factory_bot//lib/factory_bot/decorator.rb#17
|
|
450
|
+
def respond_to_missing?(name, include_private = T.unsafe(nil)); end
|
|
451
|
+
|
|
452
|
+
class << self
|
|
453
|
+
# source://factory_bot//lib/factory_bot/decorator.rb#21
|
|
454
|
+
def const_missing(name); end
|
|
455
|
+
end
|
|
456
|
+
end
|
|
457
|
+
|
|
458
|
+
# source://factory_bot//lib/factory_bot/decorator/attribute_hash.rb#3
|
|
459
|
+
class FactoryBot::Decorator::AttributeHash < ::FactoryBot::Decorator
|
|
460
|
+
# source://factory_bot//lib/factory_bot/decorator/attribute_hash.rb#4
|
|
461
|
+
def initialize(component, attributes = T.unsafe(nil)); end
|
|
462
|
+
|
|
463
|
+
# source://factory_bot//lib/factory_bot/decorator/attribute_hash.rb#9
|
|
464
|
+
def attributes; end
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
# source://factory_bot//lib/factory_bot/decorator/disallows_duplicates_registry.rb#3
|
|
468
|
+
class FactoryBot::Decorator::DisallowsDuplicatesRegistry < ::FactoryBot::Decorator
|
|
469
|
+
# source://factory_bot//lib/factory_bot/decorator/disallows_duplicates_registry.rb#4
|
|
470
|
+
def register(name, item); end
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
# source://factory_bot//lib/factory_bot/decorator/invocation_tracker.rb#3
|
|
474
|
+
class FactoryBot::Decorator::InvocationTracker < ::FactoryBot::Decorator
|
|
475
|
+
# source://factory_bot//lib/factory_bot/decorator/invocation_tracker.rb#4
|
|
476
|
+
def initialize(component); end
|
|
477
|
+
|
|
478
|
+
# source://factory_bot//lib/factory_bot/decorator/invocation_tracker.rb#15
|
|
479
|
+
def __invoked_methods__; end
|
|
480
|
+
|
|
481
|
+
# source://factory_bot//lib/factory_bot/decorator/invocation_tracker.rb#9
|
|
482
|
+
def method_missing(name, *args, **_arg2, &block); end
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
# source://factory_bot//lib/factory_bot/decorator/new_constructor.rb#3
|
|
486
|
+
class FactoryBot::Decorator::NewConstructor < ::FactoryBot::Decorator
|
|
487
|
+
# source://factory_bot//lib/factory_bot/decorator/new_constructor.rb#4
|
|
488
|
+
def initialize(component, build_class); end
|
|
489
|
+
|
|
490
|
+
# source://factory_bot//lib/factory_bot/decorator/new_constructor.rb#9
|
|
491
|
+
def new(*_arg0, **_arg1, &_arg2); end
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
# source://factory_bot//lib/factory_bot/definition.rb#3
|
|
495
|
+
class FactoryBot::Definition
|
|
496
|
+
# source://factory_bot//lib/factory_bot/definition.rb#7
|
|
497
|
+
def initialize(name, base_traits = T.unsafe(nil)); end
|
|
498
|
+
|
|
499
|
+
# source://factory_bot//lib/factory_bot/definition.rb#86
|
|
500
|
+
def add_callback(callback); end
|
|
501
|
+
|
|
502
|
+
# source://factory_bot//lib/factory_bot/definition.rb#110
|
|
503
|
+
def after(*names, &block); end
|
|
504
|
+
|
|
505
|
+
# source://factory_bot//lib/factory_bot/definition.rb#82
|
|
506
|
+
def append_traits(new_traits); end
|
|
507
|
+
|
|
508
|
+
# source://factory_bot//lib/factory_bot/definition.rb#24
|
|
509
|
+
def attributes; end
|
|
510
|
+
|
|
511
|
+
# source://factory_bot//lib/factory_bot/definition.rb#106
|
|
512
|
+
def before(*names, &block); end
|
|
513
|
+
|
|
514
|
+
# source://factory_bot//lib/factory_bot/definition.rb#114
|
|
515
|
+
def callback(*names, &block); end
|
|
516
|
+
|
|
517
|
+
# source://factory_bot//lib/factory_bot/definition.rb#45
|
|
518
|
+
def callbacks; end
|
|
519
|
+
|
|
520
|
+
# source://factory_bot//lib/factory_bot/definition.rb#49
|
|
521
|
+
def compile(klass = T.unsafe(nil)); end
|
|
522
|
+
|
|
523
|
+
# source://factory_bot//lib/factory_bot/definition.rb#41
|
|
524
|
+
def constructor; end
|
|
525
|
+
|
|
526
|
+
# source://factory_bot//lib/factory_bot/definition.rb#4
|
|
527
|
+
def declarations; end
|
|
528
|
+
|
|
529
|
+
# source://factory_bot//lib/factory_bot/definition.rb#22
|
|
530
|
+
def declare_attribute(*_arg0, **_arg1, &_arg2); end
|
|
531
|
+
|
|
532
|
+
# source://factory_bot//lib/factory_bot/definition.rb#102
|
|
533
|
+
def define_constructor(&block); end
|
|
534
|
+
|
|
535
|
+
# source://factory_bot//lib/factory_bot/definition.rb#94
|
|
536
|
+
def define_trait(trait); end
|
|
537
|
+
|
|
538
|
+
# source://factory_bot//lib/factory_bot/definition.rb#4
|
|
539
|
+
def defined_traits; end
|
|
540
|
+
|
|
541
|
+
# source://factory_bot//lib/factory_bot/definition.rb#78
|
|
542
|
+
def inherit_traits(new_traits); end
|
|
543
|
+
|
|
544
|
+
# source://factory_bot//lib/factory_bot/definition.rb#5
|
|
545
|
+
def klass; end
|
|
546
|
+
|
|
547
|
+
# source://factory_bot//lib/factory_bot/definition.rb#5
|
|
548
|
+
def klass=(_arg0); end
|
|
549
|
+
|
|
550
|
+
# source://factory_bot//lib/factory_bot/definition.rb#4
|
|
551
|
+
def name; end
|
|
552
|
+
|
|
553
|
+
# source://factory_bot//lib/factory_bot/definition.rb#73
|
|
554
|
+
def overridable; end
|
|
555
|
+
|
|
556
|
+
# source://factory_bot//lib/factory_bot/definition.rb#98
|
|
557
|
+
def register_enum(enum); end
|
|
558
|
+
|
|
559
|
+
# source://factory_bot//lib/factory_bot/definition.rb#4
|
|
560
|
+
def registered_enums; end
|
|
561
|
+
|
|
562
|
+
# source://factory_bot//lib/factory_bot/definition.rb#90
|
|
563
|
+
def skip_create; end
|
|
564
|
+
|
|
565
|
+
# source://factory_bot//lib/factory_bot/definition.rb#33
|
|
566
|
+
def to_create(&block); end
|
|
567
|
+
|
|
568
|
+
private
|
|
569
|
+
|
|
570
|
+
# source://factory_bot//lib/factory_bot/definition.rb#151
|
|
571
|
+
def additional_traits; end
|
|
572
|
+
|
|
573
|
+
# source://factory_bot//lib/factory_bot/definition.rb#171
|
|
574
|
+
def aggregate_from_traits_and_self(method_name, &block); end
|
|
575
|
+
|
|
576
|
+
# source://factory_bot//lib/factory_bot/definition.rb#196
|
|
577
|
+
def automatically_register_defined_enums(klass); end
|
|
578
|
+
|
|
579
|
+
# source://factory_bot//lib/factory_bot/definition.rb#200
|
|
580
|
+
def automatically_register_defined_enums?(klass); end
|
|
581
|
+
|
|
582
|
+
# source://factory_bot//lib/factory_bot/definition.rb#122
|
|
583
|
+
def base_traits; end
|
|
584
|
+
|
|
585
|
+
# source://factory_bot//lib/factory_bot/definition.rb#131
|
|
586
|
+
def error_with_definition_name(error); end
|
|
587
|
+
|
|
588
|
+
# source://factory_bot//lib/factory_bot/definition.rb#181
|
|
589
|
+
def expand_enum_traits(klass); end
|
|
590
|
+
|
|
591
|
+
# source://factory_bot//lib/factory_bot/definition.rb#164
|
|
592
|
+
def initialize_copy(source); end
|
|
593
|
+
|
|
594
|
+
# source://factory_bot//lib/factory_bot/definition.rb#155
|
|
595
|
+
def trait_by_name(name); end
|
|
596
|
+
|
|
597
|
+
# source://factory_bot//lib/factory_bot/definition.rb#159
|
|
598
|
+
def trait_for(name); end
|
|
599
|
+
end
|
|
600
|
+
|
|
601
|
+
# source://factory_bot//lib/factory_bot/definition_hierarchy.rb#2
|
|
602
|
+
class FactoryBot::DefinitionHierarchy
|
|
603
|
+
# source://factory_bot//lib/factory_bot/definition_hierarchy.rb#3
|
|
604
|
+
def callbacks(*_arg0, **_arg1, &_arg2); end
|
|
605
|
+
|
|
606
|
+
# source://factory_bot//lib/factory_bot/definition_hierarchy.rb#3
|
|
607
|
+
def constructor(*_arg0, **_arg1, &_arg2); end
|
|
608
|
+
|
|
609
|
+
# source://factory_bot//lib/factory_bot/definition_hierarchy.rb#3
|
|
610
|
+
def to_create(*_arg0, **_arg1, &_arg2); end
|
|
611
|
+
|
|
612
|
+
class << self
|
|
613
|
+
# source://factory_bot//lib/factory_bot/definition_hierarchy.rb#5
|
|
614
|
+
def build_from_definition(definition); end
|
|
615
|
+
|
|
616
|
+
private
|
|
617
|
+
|
|
618
|
+
# source://factory_bot//lib/factory_bot/definition_hierarchy.rb#11
|
|
619
|
+
def add_callbacks(callbacks); end
|
|
620
|
+
|
|
621
|
+
# source://factory_bot//lib/factory_bot/definition_hierarchy.rb#20
|
|
622
|
+
def build_constructor(&block); end
|
|
623
|
+
|
|
624
|
+
# source://factory_bot//lib/factory_bot/definition_hierarchy.rb#29
|
|
625
|
+
def build_to_create(&block); end
|
|
626
|
+
end
|
|
627
|
+
end
|
|
628
|
+
|
|
629
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#2
|
|
630
|
+
class FactoryBot::DefinitionProxy
|
|
631
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#26
|
|
632
|
+
def initialize(definition, ignore = T.unsafe(nil)); end
|
|
633
|
+
|
|
634
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#47
|
|
635
|
+
def add_attribute(name, &block); end
|
|
636
|
+
|
|
637
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#22
|
|
638
|
+
def after(*_arg0, **_arg1, &_arg2); end
|
|
639
|
+
|
|
640
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#151
|
|
641
|
+
def association(name, *options); end
|
|
642
|
+
|
|
643
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#22
|
|
644
|
+
def before(*_arg0, **_arg1, &_arg2); end
|
|
645
|
+
|
|
646
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#22
|
|
647
|
+
def callback(*_arg0, **_arg1, &_arg2); end
|
|
648
|
+
|
|
649
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#24
|
|
650
|
+
def child_factories; end
|
|
651
|
+
|
|
652
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#171
|
|
653
|
+
def factory(name, options = T.unsafe(nil), &block); end
|
|
654
|
+
|
|
655
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#237
|
|
656
|
+
def initialize_with(&block); end
|
|
657
|
+
|
|
658
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#91
|
|
659
|
+
def method_missing(name, *args, &block); end
|
|
660
|
+
|
|
661
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#122
|
|
662
|
+
def sequence(name, *_arg1, **_arg2, &_arg3); end
|
|
663
|
+
|
|
664
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#32
|
|
665
|
+
def singleton_method_added(name); end
|
|
666
|
+
|
|
667
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#167
|
|
668
|
+
def skip_create; end
|
|
669
|
+
|
|
670
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#163
|
|
671
|
+
def to_create(&block); end
|
|
672
|
+
|
|
673
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#175
|
|
674
|
+
def trait(name, &block); end
|
|
675
|
+
|
|
676
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#233
|
|
677
|
+
def traits_for_enum(attribute_name, values = T.unsafe(nil)); end
|
|
678
|
+
|
|
679
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#52
|
|
680
|
+
def transient(&block); end
|
|
681
|
+
|
|
682
|
+
private
|
|
683
|
+
|
|
684
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#243
|
|
685
|
+
def __declare_attribute__(name, block); end
|
|
686
|
+
|
|
687
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#252
|
|
688
|
+
def __valid_association_options?(options); end
|
|
689
|
+
end
|
|
690
|
+
|
|
691
|
+
# source://factory_bot//lib/factory_bot/definition_proxy.rb#3
|
|
692
|
+
FactoryBot::DefinitionProxy::UNPROXIED_METHODS = T.let(T.unsafe(nil), Array)
|
|
693
|
+
|
|
694
|
+
# source://factory_bot//lib/factory_bot.rb#53
|
|
695
|
+
FactoryBot::Deprecation = T.let(T.unsafe(nil), ActiveSupport::Deprecation)
|
|
696
|
+
|
|
697
|
+
# source://factory_bot//lib/factory_bot/errors.rb#12
|
|
698
|
+
class FactoryBot::DuplicateDefinitionError < ::RuntimeError; end
|
|
699
|
+
|
|
700
|
+
# source://factory_bot//lib/factory_bot/enum.rb#3
|
|
701
|
+
class FactoryBot::Enum
|
|
702
|
+
# source://factory_bot//lib/factory_bot/enum.rb#4
|
|
703
|
+
def initialize(attribute_name, values = T.unsafe(nil)); end
|
|
704
|
+
|
|
705
|
+
# source://factory_bot//lib/factory_bot/enum.rb#9
|
|
706
|
+
def build_traits(klass); end
|
|
707
|
+
|
|
708
|
+
private
|
|
709
|
+
|
|
710
|
+
# source://factory_bot//lib/factory_bot/enum.rb#21
|
|
711
|
+
def build_trait(trait_name, attribute_name, value); end
|
|
712
|
+
|
|
713
|
+
# source://factory_bot//lib/factory_bot/enum.rb#17
|
|
714
|
+
def enum_values(klass); end
|
|
715
|
+
end
|
|
716
|
+
|
|
717
|
+
# source://factory_bot//lib/factory_bot/evaluation.rb#2
|
|
718
|
+
class FactoryBot::Evaluation
|
|
719
|
+
# source://factory_bot//lib/factory_bot/evaluation.rb#3
|
|
720
|
+
def initialize(evaluator, attribute_assigner, to_create, observer); end
|
|
721
|
+
|
|
722
|
+
# source://factory_bot//lib/factory_bot/evaluation.rb#12
|
|
723
|
+
def create(result_instance); end
|
|
724
|
+
|
|
725
|
+
# source://factory_bot//lib/factory_bot/evaluation.rb#10
|
|
726
|
+
def hash(*_arg0, **_arg1, &_arg2); end
|
|
727
|
+
|
|
728
|
+
# source://factory_bot//lib/factory_bot/evaluation.rb#19
|
|
729
|
+
def notify(name, result_instance); end
|
|
730
|
+
|
|
731
|
+
# source://factory_bot//lib/factory_bot/evaluation.rb#10
|
|
732
|
+
def object(*_arg0, **_arg1, &_arg2); end
|
|
733
|
+
end
|
|
734
|
+
|
|
735
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#6
|
|
736
|
+
class FactoryBot::Evaluator
|
|
737
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#13
|
|
738
|
+
def initialize(build_strategy, overrides = T.unsafe(nil)); end
|
|
739
|
+
|
|
740
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#50
|
|
741
|
+
def __override_names__; end
|
|
742
|
+
|
|
743
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#24
|
|
744
|
+
def association(factory_name, *traits_and_overrides); end
|
|
745
|
+
|
|
746
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#7
|
|
747
|
+
def attribute_lists; end
|
|
748
|
+
|
|
749
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#7
|
|
750
|
+
def attribute_lists=(_arg0); end
|
|
751
|
+
|
|
752
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#7
|
|
753
|
+
def attribute_lists?; end
|
|
754
|
+
|
|
755
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#54
|
|
756
|
+
def increment_sequence(sequence); end
|
|
757
|
+
|
|
758
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#36
|
|
759
|
+
def instance; end
|
|
760
|
+
|
|
761
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#36
|
|
762
|
+
def instance=(_arg0); end
|
|
763
|
+
|
|
764
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#38
|
|
765
|
+
def method_missing(method_name, *_arg1, **_arg2, &_arg3); end
|
|
766
|
+
|
|
767
|
+
private
|
|
768
|
+
|
|
769
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#46
|
|
770
|
+
def respond_to_missing?(method_name, _include_private = T.unsafe(nil)); end
|
|
771
|
+
|
|
772
|
+
class << self
|
|
773
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#58
|
|
774
|
+
def attribute_list; end
|
|
775
|
+
|
|
776
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#7
|
|
777
|
+
def attribute_lists; end
|
|
778
|
+
|
|
779
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#7
|
|
780
|
+
def attribute_lists=(value); end
|
|
781
|
+
|
|
782
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#7
|
|
783
|
+
def attribute_lists?; end
|
|
784
|
+
|
|
785
|
+
# source://factory_bot//lib/factory_bot/evaluator.rb#66
|
|
786
|
+
def define_attribute(name, &block); end
|
|
787
|
+
|
|
788
|
+
private
|
|
789
|
+
|
|
790
|
+
# source://activesupport/8.0.1/lib/active_support/class_attribute.rb#15
|
|
791
|
+
def __class_attr_attribute_lists; end
|
|
792
|
+
|
|
793
|
+
# source://activesupport/8.0.1/lib/active_support/class_attribute.rb#17
|
|
794
|
+
def __class_attr_attribute_lists=(new_value); end
|
|
795
|
+
end
|
|
796
|
+
end
|
|
797
|
+
|
|
798
|
+
# source://factory_bot//lib/factory_bot/evaluator_class_definer.rb#3
|
|
799
|
+
class FactoryBot::EvaluatorClassDefiner
|
|
800
|
+
# source://factory_bot//lib/factory_bot/evaluator_class_definer.rb#4
|
|
801
|
+
def initialize(attributes, parent_class); end
|
|
802
|
+
|
|
803
|
+
# source://factory_bot//lib/factory_bot/evaluator_class_definer.rb#13
|
|
804
|
+
def evaluator_class; end
|
|
805
|
+
end
|
|
806
|
+
|
|
807
|
+
# source://factory_bot//lib/factory_bot/factory.rb#6
|
|
808
|
+
class FactoryBot::Factory
|
|
809
|
+
# source://factory_bot//lib/factory_bot/factory.rb#9
|
|
810
|
+
def initialize(name, options = T.unsafe(nil)); end
|
|
811
|
+
|
|
812
|
+
# source://factory_bot//lib/factory_bot/factory.rb#19
|
|
813
|
+
def add_callback(*_arg0, **_arg1, &_arg2); end
|
|
814
|
+
|
|
815
|
+
# source://factory_bot//lib/factory_bot/factory.rb#19
|
|
816
|
+
def append_traits(*_arg0, **_arg1, &_arg2); end
|
|
817
|
+
|
|
818
|
+
# source://factory_bot//lib/factory_bot/factory.rb#52
|
|
819
|
+
def associations; end
|
|
820
|
+
|
|
821
|
+
# source://factory_bot//lib/factory_bot/factory.rb#22
|
|
822
|
+
def build_class; end
|
|
823
|
+
|
|
824
|
+
# source://factory_bot//lib/factory_bot/factory.rb#85
|
|
825
|
+
def compile; end
|
|
826
|
+
|
|
827
|
+
# source://factory_bot//lib/factory_bot/factory.rb#19
|
|
828
|
+
def constructor(*_arg0, **_arg1, &_arg2); end
|
|
829
|
+
|
|
830
|
+
# source://factory_bot//lib/factory_bot/factory.rb#19
|
|
831
|
+
def declare_attribute(*_arg0, **_arg1, &_arg2); end
|
|
832
|
+
|
|
833
|
+
# source://factory_bot//lib/factory_bot/factory.rb#19
|
|
834
|
+
def define_trait(*_arg0, **_arg1, &_arg2); end
|
|
835
|
+
|
|
836
|
+
# source://factory_bot//lib/factory_bot/factory.rb#19
|
|
837
|
+
def defined_traits(*_arg0, **_arg1, &_arg2); end
|
|
838
|
+
|
|
839
|
+
# source://factory_bot//lib/factory_bot/factory.rb#7
|
|
840
|
+
def definition; end
|
|
841
|
+
|
|
842
|
+
# source://factory_bot//lib/factory_bot/factory.rb#48
|
|
843
|
+
def human_names; end
|
|
844
|
+
|
|
845
|
+
# source://factory_bot//lib/factory_bot/factory.rb#19
|
|
846
|
+
def inherit_traits(*_arg0, **_arg1, &_arg2); end
|
|
847
|
+
|
|
848
|
+
# source://factory_bot//lib/factory_bot/factory.rb#7
|
|
849
|
+
def name; end
|
|
850
|
+
|
|
851
|
+
# source://factory_bot//lib/factory_bot/factory.rb#81
|
|
852
|
+
def names; end
|
|
853
|
+
|
|
854
|
+
# source://factory_bot//lib/factory_bot/factory.rb#32
|
|
855
|
+
def run(build_strategy, overrides, &block); end
|
|
856
|
+
|
|
857
|
+
# source://factory_bot//lib/factory_bot/factory.rb#19
|
|
858
|
+
def to_create(*_arg0, **_arg1, &_arg2); end
|
|
859
|
+
|
|
860
|
+
# source://factory_bot//lib/factory_bot/factory.rb#95
|
|
861
|
+
def with_traits(traits); end
|
|
862
|
+
|
|
863
|
+
protected
|
|
864
|
+
|
|
865
|
+
# source://factory_bot//lib/factory_bot/factory.rb#111
|
|
866
|
+
def attributes; end
|
|
867
|
+
|
|
868
|
+
# source://factory_bot//lib/factory_bot/factory.rb#126
|
|
869
|
+
def build_hierarchy; end
|
|
870
|
+
|
|
871
|
+
# source://factory_bot//lib/factory_bot/factory.rb#130
|
|
872
|
+
def callbacks; end
|
|
873
|
+
|
|
874
|
+
# source://factory_bot//lib/factory_bot/factory.rb#103
|
|
875
|
+
def class_name; end
|
|
876
|
+
|
|
877
|
+
# source://factory_bot//lib/factory_bot/factory.rb#138
|
|
878
|
+
def compiled_constructor; end
|
|
879
|
+
|
|
880
|
+
# source://factory_bot//lib/factory_bot/factory.rb#134
|
|
881
|
+
def compiled_to_create; end
|
|
882
|
+
|
|
883
|
+
# source://factory_bot//lib/factory_bot/factory.rb#107
|
|
884
|
+
def evaluator_class; end
|
|
885
|
+
|
|
886
|
+
# source://factory_bot//lib/factory_bot/factory.rb#118
|
|
887
|
+
def hierarchy_class; end
|
|
888
|
+
|
|
889
|
+
# source://factory_bot//lib/factory_bot/factory.rb#122
|
|
890
|
+
def hierarchy_instance; end
|
|
891
|
+
|
|
892
|
+
private
|
|
893
|
+
|
|
894
|
+
# source://factory_bot//lib/factory_bot/factory.rb#144
|
|
895
|
+
def assert_valid_options(options); end
|
|
896
|
+
|
|
897
|
+
# source://factory_bot//lib/factory_bot/factory.rb#156
|
|
898
|
+
def initialize_copy(source); end
|
|
899
|
+
|
|
900
|
+
# source://factory_bot//lib/factory_bot/factory.rb#148
|
|
901
|
+
def parent; end
|
|
902
|
+
end
|
|
903
|
+
|
|
904
|
+
# source://factory_bot//lib/factory_bot/factory_runner.rb#2
|
|
905
|
+
class FactoryBot::FactoryRunner
|
|
906
|
+
# source://factory_bot//lib/factory_bot/factory_runner.rb#3
|
|
907
|
+
def initialize(name, strategy, traits_and_overrides); end
|
|
908
|
+
|
|
909
|
+
# source://factory_bot//lib/factory_bot/factory_runner.rb#11
|
|
910
|
+
def run(runner_strategy = T.unsafe(nil), &block); end
|
|
911
|
+
end
|
|
912
|
+
|
|
913
|
+
# source://factory_bot//lib/factory_bot/internal.rb#3
|
|
914
|
+
module FactoryBot::Internal
|
|
915
|
+
class << self
|
|
916
|
+
# source://factory_bot//lib/factory_bot/internal.rb#5
|
|
917
|
+
def after(*_arg0, **_arg1, &_arg2); end
|
|
918
|
+
|
|
919
|
+
# source://factory_bot//lib/factory_bot/internal.rb#5
|
|
920
|
+
def before(*_arg0, **_arg1, &_arg2); end
|
|
921
|
+
|
|
922
|
+
# source://factory_bot//lib/factory_bot/internal.rb#5
|
|
923
|
+
def callbacks(*_arg0, **_arg1, &_arg2); end
|
|
924
|
+
|
|
925
|
+
# source://factory_bot//lib/factory_bot/internal.rb#19
|
|
926
|
+
def configuration; end
|
|
927
|
+
|
|
928
|
+
# source://factory_bot//lib/factory_bot/internal.rb#5
|
|
929
|
+
def constructor(*_arg0, **_arg1, &_arg2); end
|
|
930
|
+
|
|
931
|
+
# source://factory_bot//lib/factory_bot/internal.rb#5
|
|
932
|
+
def factories(*_arg0, **_arg1, &_arg2); end
|
|
933
|
+
|
|
934
|
+
# source://factory_bot//lib/factory_bot/internal.rb#69
|
|
935
|
+
def factory_by_name(name); end
|
|
936
|
+
|
|
937
|
+
# source://factory_bot//lib/factory_bot/internal.rb#5
|
|
938
|
+
def initialize_with(*_arg0, **_arg1, &_arg2); end
|
|
939
|
+
|
|
940
|
+
# source://factory_bot//lib/factory_bot/internal.rb#5
|
|
941
|
+
def inline_sequences(*_arg0, **_arg1, &_arg2); end
|
|
942
|
+
|
|
943
|
+
# source://factory_bot//lib/factory_bot/internal.rb#82
|
|
944
|
+
def register_default_strategies; end
|
|
945
|
+
|
|
946
|
+
# source://factory_bot//lib/factory_bot/internal.rb#62
|
|
947
|
+
def register_factory(factory); end
|
|
948
|
+
|
|
949
|
+
# source://factory_bot//lib/factory_bot/internal.rb#27
|
|
950
|
+
def register_inline_sequence(sequence); end
|
|
951
|
+
|
|
952
|
+
# source://factory_bot//lib/factory_bot/internal.rb#46
|
|
953
|
+
def register_sequence(sequence); end
|
|
954
|
+
|
|
955
|
+
# source://factory_bot//lib/factory_bot/internal.rb#73
|
|
956
|
+
def register_strategy(strategy_name, strategy_class); end
|
|
957
|
+
|
|
958
|
+
# source://factory_bot//lib/factory_bot/internal.rb#35
|
|
959
|
+
def register_trait(trait); end
|
|
960
|
+
|
|
961
|
+
# source://factory_bot//lib/factory_bot/internal.rb#23
|
|
962
|
+
def reset_configuration; end
|
|
963
|
+
|
|
964
|
+
# source://factory_bot//lib/factory_bot/internal.rb#31
|
|
965
|
+
def rewind_inline_sequences; end
|
|
966
|
+
|
|
967
|
+
# source://factory_bot//lib/factory_bot/internal.rb#57
|
|
968
|
+
def rewind_sequences; end
|
|
969
|
+
|
|
970
|
+
# source://factory_bot//lib/factory_bot/internal.rb#53
|
|
971
|
+
def sequence_by_name(name); end
|
|
972
|
+
|
|
973
|
+
# source://factory_bot//lib/factory_bot/internal.rb#5
|
|
974
|
+
def sequences(*_arg0, **_arg1, &_arg2); end
|
|
975
|
+
|
|
976
|
+
# source://factory_bot//lib/factory_bot/internal.rb#5
|
|
977
|
+
def skip_create(*_arg0, **_arg1, &_arg2); end
|
|
978
|
+
|
|
979
|
+
# source://factory_bot//lib/factory_bot/internal.rb#5
|
|
980
|
+
def strategies(*_arg0, **_arg1, &_arg2); end
|
|
981
|
+
|
|
982
|
+
# source://factory_bot//lib/factory_bot/internal.rb#78
|
|
983
|
+
def strategy_by_name(name); end
|
|
984
|
+
|
|
985
|
+
# source://factory_bot//lib/factory_bot/internal.rb#5
|
|
986
|
+
def to_create(*_arg0, **_arg1, &_arg2); end
|
|
987
|
+
|
|
988
|
+
# source://factory_bot//lib/factory_bot/internal.rb#42
|
|
989
|
+
def trait_by_name(name, klass); end
|
|
990
|
+
|
|
991
|
+
# source://factory_bot//lib/factory_bot/internal.rb#5
|
|
992
|
+
def traits(*_arg0, **_arg1, &_arg2); end
|
|
993
|
+
end
|
|
994
|
+
end
|
|
995
|
+
|
|
996
|
+
# source://factory_bot//lib/factory_bot/errors.rb#9
|
|
997
|
+
class FactoryBot::InvalidCallbackNameError < ::RuntimeError; end
|
|
998
|
+
|
|
999
|
+
# source://factory_bot//lib/factory_bot/errors.rb#27
|
|
1000
|
+
class FactoryBot::InvalidFactoryError < ::RuntimeError; end
|
|
1001
|
+
|
|
1002
|
+
# source://factory_bot//lib/factory_bot/linter.rb#2
|
|
1003
|
+
class FactoryBot::Linter
|
|
1004
|
+
# source://factory_bot//lib/factory_bot/linter.rb#3
|
|
1005
|
+
def initialize(factories, strategy: T.unsafe(nil), traits: T.unsafe(nil), verbose: T.unsafe(nil)); end
|
|
1006
|
+
|
|
1007
|
+
# source://factory_bot//lib/factory_bot/linter.rb#11
|
|
1008
|
+
def lint!; end
|
|
1009
|
+
|
|
1010
|
+
private
|
|
1011
|
+
|
|
1012
|
+
# source://factory_bot//lib/factory_bot/linter.rb#21
|
|
1013
|
+
def calculate_invalid_factories; end
|
|
1014
|
+
|
|
1015
|
+
# source://factory_bot//lib/factory_bot/linter.rb#90
|
|
1016
|
+
def error_message; end
|
|
1017
|
+
|
|
1018
|
+
# source://factory_bot//lib/factory_bot/linter.rb#102
|
|
1019
|
+
def error_message_type; end
|
|
1020
|
+
|
|
1021
|
+
# source://factory_bot//lib/factory_bot/linter.rb#19
|
|
1022
|
+
def factories_to_lint; end
|
|
1023
|
+
|
|
1024
|
+
# source://factory_bot//lib/factory_bot/linter.rb#19
|
|
1025
|
+
def factory_strategy; end
|
|
1026
|
+
|
|
1027
|
+
# source://factory_bot//lib/factory_bot/linter.rb#19
|
|
1028
|
+
def invalid_factories; end
|
|
1029
|
+
|
|
1030
|
+
# source://factory_bot//lib/factory_bot/linter.rb#62
|
|
1031
|
+
def lint(factory); end
|
|
1032
|
+
|
|
1033
|
+
# source://factory_bot//lib/factory_bot/linter.rb#70
|
|
1034
|
+
def lint_factory(factory); end
|
|
1035
|
+
|
|
1036
|
+
# source://factory_bot//lib/factory_bot/linter.rb#80
|
|
1037
|
+
def lint_traits(factory); end
|
|
1038
|
+
end
|
|
1039
|
+
|
|
1040
|
+
# source://factory_bot//lib/factory_bot/linter.rb#28
|
|
1041
|
+
class FactoryBot::Linter::FactoryError
|
|
1042
|
+
# source://factory_bot//lib/factory_bot/linter.rb#29
|
|
1043
|
+
def initialize(wrapped_error, factory); end
|
|
1044
|
+
|
|
1045
|
+
# source://factory_bot//lib/factory_bot/linter.rb#46
|
|
1046
|
+
def location; end
|
|
1047
|
+
|
|
1048
|
+
# source://factory_bot//lib/factory_bot/linter.rb#34
|
|
1049
|
+
def message; end
|
|
1050
|
+
|
|
1051
|
+
# source://factory_bot//lib/factory_bot/linter.rb#39
|
|
1052
|
+
def verbose_message; end
|
|
1053
|
+
end
|
|
1054
|
+
|
|
1055
|
+
# source://factory_bot//lib/factory_bot/linter.rb#51
|
|
1056
|
+
class FactoryBot::Linter::FactoryTraitError < ::FactoryBot::Linter::FactoryError
|
|
1057
|
+
# source://factory_bot//lib/factory_bot/linter.rb#52
|
|
1058
|
+
def initialize(wrapped_error, factory, trait_name); end
|
|
1059
|
+
|
|
1060
|
+
# source://factory_bot//lib/factory_bot/linter.rb#57
|
|
1061
|
+
def location; end
|
|
1062
|
+
end
|
|
1063
|
+
|
|
1064
|
+
# source://factory_bot//lib/factory_bot/errors.rb#24
|
|
1065
|
+
class FactoryBot::MethodDefinitionError < ::RuntimeError; end
|
|
1066
|
+
|
|
1067
|
+
# source://factory_bot//lib/factory_bot/null_factory.rb#3
|
|
1068
|
+
class FactoryBot::NullFactory
|
|
1069
|
+
# source://factory_bot//lib/factory_bot/null_factory.rb#6
|
|
1070
|
+
def initialize; end
|
|
1071
|
+
|
|
1072
|
+
# source://factory_bot//lib/factory_bot/null_factory.rb#10
|
|
1073
|
+
def attributes(*_arg0, **_arg1, &_arg2); end
|
|
1074
|
+
|
|
1075
|
+
# source://factory_bot//lib/factory_bot/null_factory.rb#10
|
|
1076
|
+
def callbacks(*_arg0, **_arg1, &_arg2); end
|
|
1077
|
+
|
|
1078
|
+
# source://factory_bot//lib/factory_bot/null_factory.rb#16
|
|
1079
|
+
def class_name; end
|
|
1080
|
+
|
|
1081
|
+
# source://factory_bot//lib/factory_bot/null_factory.rb#13
|
|
1082
|
+
def compile; end
|
|
1083
|
+
|
|
1084
|
+
# source://factory_bot//lib/factory_bot/null_factory.rb#10
|
|
1085
|
+
def constructor(*_arg0, **_arg1, &_arg2); end
|
|
1086
|
+
|
|
1087
|
+
# source://factory_bot//lib/factory_bot/null_factory.rb#10
|
|
1088
|
+
def defined_traits(*_arg0, **_arg1, &_arg2); end
|
|
1089
|
+
|
|
1090
|
+
# source://factory_bot//lib/factory_bot/null_factory.rb#4
|
|
1091
|
+
def definition; end
|
|
1092
|
+
|
|
1093
|
+
# source://factory_bot//lib/factory_bot/null_factory.rb#19
|
|
1094
|
+
def evaluator_class; end
|
|
1095
|
+
|
|
1096
|
+
# source://factory_bot//lib/factory_bot/null_factory.rb#23
|
|
1097
|
+
def hierarchy_class; end
|
|
1098
|
+
|
|
1099
|
+
# source://factory_bot//lib/factory_bot/null_factory.rb#10
|
|
1100
|
+
def to_create(*_arg0, **_arg1, &_arg2); end
|
|
1101
|
+
end
|
|
1102
|
+
|
|
1103
|
+
# source://factory_bot//lib/factory_bot/null_object.rb#3
|
|
1104
|
+
class FactoryBot::NullObject < ::BasicObject
|
|
1105
|
+
# source://factory_bot//lib/factory_bot/null_object.rb#4
|
|
1106
|
+
def initialize(methods_to_respond_to); end
|
|
1107
|
+
|
|
1108
|
+
# source://factory_bot//lib/factory_bot/null_object.rb#8
|
|
1109
|
+
def method_missing(name, *args, &block); end
|
|
1110
|
+
|
|
1111
|
+
# source://factory_bot//lib/factory_bot/null_object.rb#16
|
|
1112
|
+
def respond_to?(method); end
|
|
1113
|
+
end
|
|
1114
|
+
|
|
1115
|
+
# source://factory_bot//lib/factory_bot/registry.rb#4
|
|
1116
|
+
class FactoryBot::Registry
|
|
1117
|
+
include ::Enumerable
|
|
1118
|
+
|
|
1119
|
+
# source://factory_bot//lib/factory_bot/registry.rb#9
|
|
1120
|
+
def initialize(name); end
|
|
1121
|
+
|
|
1122
|
+
# source://factory_bot//lib/factory_bot/registry.rb#22
|
|
1123
|
+
def [](name); end
|
|
1124
|
+
|
|
1125
|
+
# source://factory_bot//lib/factory_bot/registry.rb#14
|
|
1126
|
+
def clear; end
|
|
1127
|
+
|
|
1128
|
+
# source://factory_bot//lib/factory_bot/registry.rb#18
|
|
1129
|
+
def each(&block); end
|
|
1130
|
+
|
|
1131
|
+
# source://factory_bot//lib/factory_bot/registry.rb#22
|
|
1132
|
+
def find(name); end
|
|
1133
|
+
|
|
1134
|
+
# source://factory_bot//lib/factory_bot/registry.rb#7
|
|
1135
|
+
def name; end
|
|
1136
|
+
|
|
1137
|
+
# source://factory_bot//lib/factory_bot/registry.rb#30
|
|
1138
|
+
def register(name, item); end
|
|
1139
|
+
|
|
1140
|
+
# source://factory_bot//lib/factory_bot/registry.rb#34
|
|
1141
|
+
def registered?(name); end
|
|
1142
|
+
|
|
1143
|
+
private
|
|
1144
|
+
|
|
1145
|
+
# source://factory_bot//lib/factory_bot/registry.rb#40
|
|
1146
|
+
def key_error_with_custom_message(key_error); end
|
|
1147
|
+
|
|
1148
|
+
# source://factory_bot//lib/factory_bot/registry.rb#50
|
|
1149
|
+
def new_key_error(message, key_error); end
|
|
1150
|
+
end
|
|
1151
|
+
|
|
1152
|
+
# source://factory_bot//lib/factory_bot/sequence.rb#5
|
|
1153
|
+
class FactoryBot::Sequence
|
|
1154
|
+
# source://factory_bot//lib/factory_bot/sequence.rb#8
|
|
1155
|
+
def initialize(name, *args, &proc); end
|
|
1156
|
+
|
|
1157
|
+
# source://factory_bot//lib/factory_bot/sequence.rb#6
|
|
1158
|
+
def name; end
|
|
1159
|
+
|
|
1160
|
+
# source://factory_bot//lib/factory_bot/sequence.rb#33
|
|
1161
|
+
def names; end
|
|
1162
|
+
|
|
1163
|
+
# source://factory_bot//lib/factory_bot/sequence.rb#21
|
|
1164
|
+
def next(scope = T.unsafe(nil)); end
|
|
1165
|
+
|
|
1166
|
+
# source://factory_bot//lib/factory_bot/sequence.rb#37
|
|
1167
|
+
def rewind; end
|
|
1168
|
+
|
|
1169
|
+
private
|
|
1170
|
+
|
|
1171
|
+
# source://factory_bot//lib/factory_bot/sequence.rb#47
|
|
1172
|
+
def increment_value; end
|
|
1173
|
+
|
|
1174
|
+
# source://factory_bot//lib/factory_bot/sequence.rb#43
|
|
1175
|
+
def value; end
|
|
1176
|
+
end
|
|
1177
|
+
|
|
1178
|
+
# source://factory_bot//lib/factory_bot/sequence.rb#51
|
|
1179
|
+
class FactoryBot::Sequence::EnumeratorAdapter
|
|
1180
|
+
# source://factory_bot//lib/factory_bot/sequence.rb#52
|
|
1181
|
+
def initialize(value); end
|
|
1182
|
+
|
|
1183
|
+
# source://factory_bot//lib/factory_bot/sequence.rb#61
|
|
1184
|
+
def next; end
|
|
1185
|
+
|
|
1186
|
+
# source://factory_bot//lib/factory_bot/sequence.rb#57
|
|
1187
|
+
def peek; end
|
|
1188
|
+
|
|
1189
|
+
# source://factory_bot//lib/factory_bot/sequence.rb#65
|
|
1190
|
+
def rewind; end
|
|
1191
|
+
end
|
|
1192
|
+
|
|
1193
|
+
# source://factory_bot//lib/factory_bot/errors.rb#15
|
|
1194
|
+
class FactoryBot::SequenceAbuseError < ::RuntimeError; end
|
|
1195
|
+
|
|
1196
|
+
# source://factory_bot//lib/factory_bot/strategy/build.rb#2
|
|
1197
|
+
module FactoryBot::Strategy; end
|
|
1198
|
+
|
|
1199
|
+
# source://factory_bot//lib/factory_bot/strategy/attributes_for.rb#3
|
|
1200
|
+
class FactoryBot::Strategy::AttributesFor
|
|
1201
|
+
# source://factory_bot//lib/factory_bot/strategy/attributes_for.rb#4
|
|
1202
|
+
def association(runner); end
|
|
1203
|
+
|
|
1204
|
+
# source://factory_bot//lib/factory_bot/strategy/attributes_for.rb#8
|
|
1205
|
+
def result(evaluation); end
|
|
1206
|
+
|
|
1207
|
+
# source://factory_bot//lib/factory_bot/strategy/attributes_for.rb#12
|
|
1208
|
+
def to_sym; end
|
|
1209
|
+
end
|
|
1210
|
+
|
|
1211
|
+
# source://factory_bot//lib/factory_bot/strategy/build.rb#3
|
|
1212
|
+
class FactoryBot::Strategy::Build
|
|
1213
|
+
# source://factory_bot//lib/factory_bot/strategy/build.rb#4
|
|
1214
|
+
def association(runner); end
|
|
1215
|
+
|
|
1216
|
+
# source://factory_bot//lib/factory_bot/strategy/build.rb#8
|
|
1217
|
+
def result(evaluation); end
|
|
1218
|
+
|
|
1219
|
+
# source://factory_bot//lib/factory_bot/strategy/build.rb#14
|
|
1220
|
+
def to_sym; end
|
|
1221
|
+
end
|
|
1222
|
+
|
|
1223
|
+
# source://factory_bot//lib/factory_bot/strategy/create.rb#3
|
|
1224
|
+
class FactoryBot::Strategy::Create
|
|
1225
|
+
# source://factory_bot//lib/factory_bot/strategy/create.rb#4
|
|
1226
|
+
def association(runner); end
|
|
1227
|
+
|
|
1228
|
+
# source://factory_bot//lib/factory_bot/strategy/create.rb#8
|
|
1229
|
+
def result(evaluation); end
|
|
1230
|
+
|
|
1231
|
+
# source://factory_bot//lib/factory_bot/strategy/create.rb#17
|
|
1232
|
+
def to_sym; end
|
|
1233
|
+
end
|
|
1234
|
+
|
|
1235
|
+
# source://factory_bot//lib/factory_bot/strategy/null.rb#3
|
|
1236
|
+
class FactoryBot::Strategy::Null
|
|
1237
|
+
# source://factory_bot//lib/factory_bot/strategy/null.rb#4
|
|
1238
|
+
def association(runner); end
|
|
1239
|
+
|
|
1240
|
+
# source://factory_bot//lib/factory_bot/strategy/null.rb#7
|
|
1241
|
+
def result(evaluation); end
|
|
1242
|
+
|
|
1243
|
+
# source://factory_bot//lib/factory_bot/strategy/null.rb#10
|
|
1244
|
+
def to_sym; end
|
|
1245
|
+
end
|
|
1246
|
+
|
|
1247
|
+
# source://factory_bot//lib/factory_bot/strategy/stub.rb#3
|
|
1248
|
+
class FactoryBot::Strategy::Stub
|
|
1249
|
+
# source://factory_bot//lib/factory_bot/strategy/stub.rb#31
|
|
1250
|
+
def association(runner); end
|
|
1251
|
+
|
|
1252
|
+
# source://factory_bot//lib/factory_bot/strategy/stub.rb#35
|
|
1253
|
+
def result(evaluation); end
|
|
1254
|
+
|
|
1255
|
+
# source://factory_bot//lib/factory_bot/strategy/stub.rb#44
|
|
1256
|
+
def to_sym; end
|
|
1257
|
+
|
|
1258
|
+
private
|
|
1259
|
+
|
|
1260
|
+
# source://factory_bot//lib/factory_bot/strategy/stub.rb#98
|
|
1261
|
+
def clear_changes_information(result_instance); end
|
|
1262
|
+
|
|
1263
|
+
# source://factory_bot//lib/factory_bot/strategy/stub.rb#85
|
|
1264
|
+
def has_settable_id?(result_instance); end
|
|
1265
|
+
|
|
1266
|
+
# source://factory_bot//lib/factory_bot/strategy/stub.rb#114
|
|
1267
|
+
def missing_created_at?(result_instance); end
|
|
1268
|
+
|
|
1269
|
+
# source://factory_bot//lib/factory_bot/strategy/stub.rb#120
|
|
1270
|
+
def missing_updated_at?(result_instance); end
|
|
1271
|
+
|
|
1272
|
+
# source://factory_bot//lib/factory_bot/strategy/stub.rb#50
|
|
1273
|
+
def next_id(result_instance); end
|
|
1274
|
+
|
|
1275
|
+
# source://factory_bot//lib/factory_bot/strategy/stub.rb#104
|
|
1276
|
+
def set_timestamps(result_instance); end
|
|
1277
|
+
|
|
1278
|
+
# source://factory_bot//lib/factory_bot/strategy/stub.rb#58
|
|
1279
|
+
def stub_database_interaction_on_result(result_instance); end
|
|
1280
|
+
|
|
1281
|
+
# source://factory_bot//lib/factory_bot/strategy/stub.rb#91
|
|
1282
|
+
def uuid_primary_key?(result_instance); end
|
|
1283
|
+
|
|
1284
|
+
class << self
|
|
1285
|
+
# source://factory_bot//lib/factory_bot/strategy/stub.rb#27
|
|
1286
|
+
def next_id=(id); end
|
|
1287
|
+
end
|
|
1288
|
+
end
|
|
1289
|
+
|
|
1290
|
+
# source://factory_bot//lib/factory_bot/strategy/stub.rb#6
|
|
1291
|
+
FactoryBot::Strategy::Stub::DISABLED_PERSISTENCE_METHODS = T.let(T.unsafe(nil), Array)
|
|
1292
|
+
|
|
1293
|
+
# source://factory_bot//lib/factory_bot/strategy_calculator.rb#3
|
|
1294
|
+
class FactoryBot::StrategyCalculator
|
|
1295
|
+
# source://factory_bot//lib/factory_bot/strategy_calculator.rb#4
|
|
1296
|
+
def initialize(name_or_object); end
|
|
1297
|
+
|
|
1298
|
+
# source://factory_bot//lib/factory_bot/strategy_calculator.rb#8
|
|
1299
|
+
def strategy; end
|
|
1300
|
+
|
|
1301
|
+
private
|
|
1302
|
+
|
|
1303
|
+
# source://factory_bot//lib/factory_bot/strategy_calculator.rb#18
|
|
1304
|
+
def strategy_is_object?; end
|
|
1305
|
+
|
|
1306
|
+
# source://factory_bot//lib/factory_bot/strategy_calculator.rb#22
|
|
1307
|
+
def strategy_name_to_object; end
|
|
1308
|
+
end
|
|
1309
|
+
|
|
1310
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#3
|
|
1311
|
+
class FactoryBot::StrategySyntaxMethodRegistrar
|
|
1312
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#4
|
|
1313
|
+
def initialize(strategy_name); end
|
|
1314
|
+
|
|
1315
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#8
|
|
1316
|
+
def define_strategy_methods; end
|
|
1317
|
+
|
|
1318
|
+
private
|
|
1319
|
+
|
|
1320
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#32
|
|
1321
|
+
def define_list_strategy_method; end
|
|
1322
|
+
|
|
1323
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#47
|
|
1324
|
+
def define_pair_strategy_method; end
|
|
1325
|
+
|
|
1326
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#24
|
|
1327
|
+
def define_singular_strategy_method; end
|
|
1328
|
+
|
|
1329
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#55
|
|
1330
|
+
def define_syntax_method(name, &block); end
|
|
1331
|
+
|
|
1332
|
+
class << self
|
|
1333
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#14
|
|
1334
|
+
def with_index(block, index); end
|
|
1335
|
+
end
|
|
1336
|
+
end
|
|
1337
|
+
|
|
1338
|
+
# source://factory_bot//lib/factory_bot/syntax/methods.rb#2
|
|
1339
|
+
module FactoryBot::Syntax; end
|
|
1340
|
+
|
|
1341
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#3
|
|
1342
|
+
module FactoryBot::Syntax::Default
|
|
1343
|
+
include ::FactoryBot::Syntax::Methods
|
|
1344
|
+
|
|
1345
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#6
|
|
1346
|
+
def define(&block); end
|
|
1347
|
+
|
|
1348
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#10
|
|
1349
|
+
def modify(&block); end
|
|
1350
|
+
end
|
|
1351
|
+
|
|
1352
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#14
|
|
1353
|
+
class FactoryBot::Syntax::Default::DSL
|
|
1354
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#40
|
|
1355
|
+
def after(*_arg0, **_arg1, &_arg2); end
|
|
1356
|
+
|
|
1357
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#40
|
|
1358
|
+
def before(*_arg0, **_arg1, &_arg2); end
|
|
1359
|
+
|
|
1360
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#40
|
|
1361
|
+
def callback(*_arg0, **_arg1, &_arg2); end
|
|
1362
|
+
|
|
1363
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#15
|
|
1364
|
+
def factory(name, options = T.unsafe(nil), &block); end
|
|
1365
|
+
|
|
1366
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#40
|
|
1367
|
+
def initialize_with(*_arg0, **_arg1, &_arg2); end
|
|
1368
|
+
|
|
1369
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#28
|
|
1370
|
+
def sequence(name, *_arg1, **_arg2, &_arg3); end
|
|
1371
|
+
|
|
1372
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#40
|
|
1373
|
+
def skip_create(*_arg0, **_arg1, &_arg2); end
|
|
1374
|
+
|
|
1375
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#40
|
|
1376
|
+
def to_create(*_arg0, **_arg1, &_arg2); end
|
|
1377
|
+
|
|
1378
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#32
|
|
1379
|
+
def trait(name, &block); end
|
|
1380
|
+
|
|
1381
|
+
class << self
|
|
1382
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#36
|
|
1383
|
+
def run(block); end
|
|
1384
|
+
end
|
|
1385
|
+
end
|
|
1386
|
+
|
|
1387
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#49
|
|
1388
|
+
class FactoryBot::Syntax::Default::ModifyDSL
|
|
1389
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#50
|
|
1390
|
+
def factory(name, _options = T.unsafe(nil), &block); end
|
|
1391
|
+
|
|
1392
|
+
class << self
|
|
1393
|
+
# source://factory_bot//lib/factory_bot/syntax/default.rb#56
|
|
1394
|
+
def run(block); end
|
|
1395
|
+
end
|
|
1396
|
+
end
|
|
1397
|
+
|
|
1398
|
+
# source://factory_bot//lib/factory_bot/syntax/methods.rb#32
|
|
1399
|
+
module FactoryBot::Syntax::Methods
|
|
1400
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#27
|
|
1401
|
+
def alchemrest_hash_for(name, *traits_and_overrides, &block); end
|
|
1402
|
+
|
|
1403
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#35
|
|
1404
|
+
def alchemrest_hash_for_list(name, amount, *traits_and_overrides, &block); end
|
|
1405
|
+
|
|
1406
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#50
|
|
1407
|
+
def alchemrest_hash_for_pair(name, *traits_and_overrides, &block); end
|
|
1408
|
+
|
|
1409
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#27
|
|
1410
|
+
def alchemrest_record_for(name, *traits_and_overrides, &block); end
|
|
1411
|
+
|
|
1412
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#35
|
|
1413
|
+
def alchemrest_record_for_list(name, amount, *traits_and_overrides, &block); end
|
|
1414
|
+
|
|
1415
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#50
|
|
1416
|
+
def alchemrest_record_for_pair(name, *traits_and_overrides, &block); end
|
|
1417
|
+
|
|
1418
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#27
|
|
1419
|
+
def attributes_for(name, *traits_and_overrides, &block); end
|
|
1420
|
+
|
|
1421
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#35
|
|
1422
|
+
def attributes_for_list(name, amount, *traits_and_overrides, &block); end
|
|
1423
|
+
|
|
1424
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#50
|
|
1425
|
+
def attributes_for_pair(name, *traits_and_overrides, &block); end
|
|
1426
|
+
|
|
1427
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#27
|
|
1428
|
+
def build(name, *traits_and_overrides, &block); end
|
|
1429
|
+
|
|
1430
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#35
|
|
1431
|
+
def build_list(name, amount, *traits_and_overrides, &block); end
|
|
1432
|
+
|
|
1433
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#50
|
|
1434
|
+
def build_pair(name, *traits_and_overrides, &block); end
|
|
1435
|
+
|
|
1436
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#27
|
|
1437
|
+
def build_stubbed(name, *traits_and_overrides, &block); end
|
|
1438
|
+
|
|
1439
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#35
|
|
1440
|
+
def build_stubbed_list(name, amount, *traits_and_overrides, &block); end
|
|
1441
|
+
|
|
1442
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#50
|
|
1443
|
+
def build_stubbed_pair(name, *traits_and_overrides, &block); end
|
|
1444
|
+
|
|
1445
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#27
|
|
1446
|
+
def create(name, *traits_and_overrides, &block); end
|
|
1447
|
+
|
|
1448
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#35
|
|
1449
|
+
def create_list(name, amount, *traits_and_overrides, &block); end
|
|
1450
|
+
|
|
1451
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#50
|
|
1452
|
+
def create_pair(name, *traits_and_overrides, &block); end
|
|
1453
|
+
|
|
1454
|
+
# source://factory_bot//lib/factory_bot/syntax/methods.rb#113
|
|
1455
|
+
def generate(name); end
|
|
1456
|
+
|
|
1457
|
+
# source://factory_bot//lib/factory_bot/syntax/methods.rb#127
|
|
1458
|
+
def generate_list(name, count); end
|
|
1459
|
+
|
|
1460
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#27
|
|
1461
|
+
def null(name, *traits_and_overrides, &block); end
|
|
1462
|
+
|
|
1463
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#35
|
|
1464
|
+
def null_list(name, amount, *traits_and_overrides, &block); end
|
|
1465
|
+
|
|
1466
|
+
# source://factory_bot//lib/factory_bot/strategy_syntax_method_registrar.rb#50
|
|
1467
|
+
def null_pair(name, *traits_and_overrides, &block); end
|
|
1468
|
+
end
|
|
1469
|
+
|
|
1470
|
+
# source://factory_bot//lib/factory_bot/syntax_runner.rb#3
|
|
1471
|
+
class FactoryBot::SyntaxRunner
|
|
1472
|
+
include ::FactoryBot::Syntax::Methods
|
|
1473
|
+
end
|
|
1474
|
+
|
|
1475
|
+
# source://factory_bot//lib/factory_bot/trait.rb#3
|
|
1476
|
+
class FactoryBot::Trait
|
|
1477
|
+
# source://factory_bot//lib/factory_bot/trait.rb#6
|
|
1478
|
+
def initialize(name, &block); end
|
|
1479
|
+
|
|
1480
|
+
# source://factory_bot//lib/factory_bot/trait.rb#24
|
|
1481
|
+
def ==(other); end
|
|
1482
|
+
|
|
1483
|
+
# source://factory_bot//lib/factory_bot/trait.rb#17
|
|
1484
|
+
def add_callback(*_arg0, **_arg1, &_arg2); end
|
|
1485
|
+
|
|
1486
|
+
# source://factory_bot//lib/factory_bot/trait.rb#17
|
|
1487
|
+
def attributes(*_arg0, **_arg1, &_arg2); end
|
|
1488
|
+
|
|
1489
|
+
# source://factory_bot//lib/factory_bot/trait.rb#17
|
|
1490
|
+
def callbacks(*_arg0, **_arg1, &_arg2); end
|
|
1491
|
+
|
|
1492
|
+
# source://factory_bot//lib/factory_bot/trait.rb#17
|
|
1493
|
+
def constructor(*_arg0, **_arg1, &_arg2); end
|
|
1494
|
+
|
|
1495
|
+
# source://factory_bot//lib/factory_bot/trait.rb#17
|
|
1496
|
+
def declare_attribute(*_arg0, **_arg1, &_arg2); end
|
|
1497
|
+
|
|
1498
|
+
# source://factory_bot//lib/factory_bot/trait.rb#17
|
|
1499
|
+
def define_trait(*_arg0, **_arg1, &_arg2); end
|
|
1500
|
+
|
|
1501
|
+
# source://factory_bot//lib/factory_bot/trait.rb#4
|
|
1502
|
+
def definition; end
|
|
1503
|
+
|
|
1504
|
+
# source://factory_bot//lib/factory_bot/trait.rb#17
|
|
1505
|
+
def klass(*_arg0, **_arg1, &_arg2); end
|
|
1506
|
+
|
|
1507
|
+
# source://factory_bot//lib/factory_bot/trait.rb#17
|
|
1508
|
+
def klass=(arg); end
|
|
1509
|
+
|
|
1510
|
+
# source://factory_bot//lib/factory_bot/trait.rb#4
|
|
1511
|
+
def name; end
|
|
1512
|
+
|
|
1513
|
+
# source://factory_bot//lib/factory_bot/trait.rb#20
|
|
1514
|
+
def names; end
|
|
1515
|
+
|
|
1516
|
+
# source://factory_bot//lib/factory_bot/trait.rb#17
|
|
1517
|
+
def to_create(*_arg0, **_arg1, &_arg2); end
|
|
1518
|
+
|
|
1519
|
+
protected
|
|
1520
|
+
|
|
1521
|
+
# source://factory_bot//lib/factory_bot/trait.rb#31
|
|
1522
|
+
def block; end
|
|
1523
|
+
end
|
|
1524
|
+
|
|
1525
|
+
# source://factory_bot//lib/factory_bot/errors.rb#6
|
|
1526
|
+
class FactoryBot::TraitDefinitionError < ::RuntimeError; end
|
|
1527
|
+
|
|
1528
|
+
# source://factory_bot//lib/factory_bot/version.rb#2
|
|
1529
|
+
FactoryBot::VERSION = T.let(T.unsafe(nil), String)
|