首页 开发技术 其它     /    to_factory:根据数据自动生成工厂-源码

to_factory:根据数据自动生成工厂-源码

上传者: weixin_42133415 | 上传时间:2019/2/10 6:34:31 | 文件大小:54KB | 文件类型:ZIP
to_factory:根据数据自动生成工厂-源码
到工厂:wrench:轻松添加具有现有项目有效数据的工厂。
如果您发现本人进行了改装测试,那么这颗宝石将为您省去一些麻烦。
自动生成所有工厂从现有记录中自动生成侵入地更新工厂文件显示记录的工厂定义解析并编写FactoryGirl语法或更旧的Factory.define语法已针对Ruby1.8.7、1.9.2、1.9.3、2.0.0、2.1.x,2.2.x测试警告:warning:ToFactory写入spec/factories文件夹。
虽然已经过测试,并且避免覆盖现有工厂,但建议您在提交后或处于已知的安全状态下执行。
安装:file_folder:#Gemfile#addtowhicheverenvironmentsyouwanttogeneratedatafromgroup:test,:developmentdogem'to_factory'end对于Rub

文件下载

资源详情

[{"title":"(73个子文件54KB)to_factory:根据数据自动生成工厂-源码","children":[{"title":"to_factory-master","children":[{"title":".travis.yml <span style='color:#111;'>144B</span>","children":null,"spread":false},{"title":"bin","children":[{"title":"ci <span style='color:#111;'>110B</span>","children":null,"spread":false},{"title":"spec <span style='color:#111;'>50B</span>","children":null,"spread":false}],"spread":true},{"title":"to_factory.gemspec <span style='color:#111;'>1.21KB</span>","children":null,"spread":false},{"title":"Rakefile <span style='color:#111;'>925B</span>","children":null,"spread":false},{"title":".rubocop.yml <span style='color:#111;'>24.74KB</span>","children":null,"spread":false},{"title":".rubocop-disabled.yml <span style='color:#111;'>3.08KB</span>","children":null,"spread":false},{"title":".rubocop-enabled.yml <span style='color:#111;'>38.35KB</span>","children":null,"spread":false},{"title":"Gemfile <span style='color:#111;'>100B</span>","children":null,"spread":false},{"title":"tmp","children":[{"title":".keep <span style='color:#111;'>0B</span>","children":null,"spread":false}],"spread":true},{"title":".rspec <span style='color:#111;'>30B</span>","children":null,"spread":false},{"title":"spec","children":[{"title":"db","children":[{"title":"migrate","children":[{"title":"2_create_projects.rb <span style='color:#111;'>264B</span>","children":null,"spread":false},{"title":"5_add_serialized_attributes_to_users.rb <span style='color:#111;'>200B</span>","children":null,"spread":false},{"title":"1_create_users.rb <span style='color:#111;'>251B</span>","children":null,"spread":false},{"title":"4_add_birthday_to_users.rb <span style='color:#111;'>178B</span>","children":null,"spread":false},{"title":"3_create_not_namespaced.rb <span style='color:#111;'>349B</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"support","children":[{"title":"models","children":[{"title":"project.rb <span style='color:#111;'>81B</span>","children":null,"spread":false},{"title":"not_active_record.rb <span style='color:#111;'>37B</span>","children":null,"spread":false},{"title":"user.rb <span style='color:#111;'>110B</span>","children":null,"spread":false}],"spread":false},{"title":"broken_models","children":[{"title":"invalid_ruby_file.rb <span style='color:#111;'>31B</span>","children":null,"spread":false},{"title":"project.rb <span style='color:#111;'>81B</span>","children":null,"spread":false}],"spread":false},{"title":"data_creation.rb <span style='color:#111;'>668B</span>","children":null,"spread":false},{"title":"match_sexp.rb <span style='color:#111;'>471B</span>","children":null,"spread":false},{"title":"ruby_parser_exception_causing_string.rb <span style='color:#111;'>484B</span>","children":null,"spread":false},{"title":"non_active_record","children":[{"title":"some_other_service_inheriting_from_something_else.rb <span style='color:#111;'>78B</span>","children":null,"spread":false},{"title":"some_service.rb <span style='color:#111;'>22B</span>","children":null,"spread":false},{"title":"inherited_project.rb <span style='color:#111;'>90B</span>","children":null,"spread":false},{"title":"project.rb <span style='color:#111;'>81B</span>","children":null,"spread":false},{"title":"something_else.rb <span style='color:#111;'>24B</span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"unit","children":[{"title":"collation_spec.rb <span style='color:#111;'>1.58KB</span>","children":null,"spread":false},{"title":"file_writer_spec.rb <span style='color:#111;'>760B</span>","children":null,"spread":false},{"title":"parsing","children":[{"title":"klass_inference_spec.rb <span style='color:#111;'>950B</span>","children":null,"spread":false},{"title":"file_spec.rb <span style='color:#111;'>3.11KB</span>","children":null,"spread":false}],"spread":false},{"title":"generation","children":[{"title":"factory_spec.rb <span style='color:#111;'>2.73KB</span>","children":null,"spread":false},{"title":"attribute_spec.rb <span style='color:#111;'>2.03KB</span>","children":null,"spread":false}],"spread":false},{"title":"finders","children":[{"title":"model_spec.rb <span style='color:#111;'>1.39KB</span>","children":null,"spread":false},{"title":"factory_spec.rb <span style='color:#111;'>712B</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"example_factories","children":[{"title":"user_admin_super_admin.rb <span style='color:#111;'>227B</span>","children":null,"spread":false},{"title":"user_admin_root.rb <span style='color:#111;'>406B</span>","children":null,"spread":false},{"title":"user_with_header.rb <span style='color:#111;'>191B</span>","children":null,"spread":false},{"title":"user_admin.rb <span style='color:#111;'>311B</span>","children":null,"spread":false},{"title":"project_with_header.rb <span style='color:#111;'>133B</span>","children":null,"spread":false},{"title":"admin.rb <span style='color:#111;'>164B</span>","children":null,"spread":false},{"title":"user_admin_with_header.rb <span style='color:#111;'>365B</span>","children":null,"spread":false},{"title":"admin_with_header.rb <span style='color:#111;'>204B</span>","children":null,"spread":false},{"title":"user.rb <span style='color:#111;'>146B</span>","children":null,"spread":false},{"title":"inherited_project_with_header.rb <span style='color:#111;'>143B</span>","children":null,"spread":false}],"spread":false},{"title":"integration","children":[{"title":"lint_spec.rb <span style='color:#111;'>290B</span>","children":null,"spread":false},{"title":"file_writer_spec.rb <span style='color:#111;'>657B</span>","children":null,"spread":false},{"title":"config_spec.rb <span style='color:#111;'>407B</span>","children":null,"spread":false},{"title":"to_factory_method_spec.rb <span style='color:#111;'>3.65KB</span>","children":null,"spread":false},{"title":"file_sync_spec.rb <span style='color:#111;'>2.14KB</span>","children":null,"spread":false},{"title":"non_active_record_classes_spec.rb <span style='color:#111;'>1.08KB</span>","children":null,"spread":false},{"title":"empty_factory_file_spec.rb <span style='color:#111;'>421B</span>","children":null,"spread":false},{"title":"multiple_to_factory_calls_spec.rb <span style='color:#111;'>2.42KB</span>","children":null,"spread":false}],"spread":false},{"title":"spec_helper.rb <span style='color:#111;'>1.31KB</span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'>141B</span>","children":null,"spread":false},{"title":"lib","children":[{"title":"to_factory.rb <span style='color:#111;'>1.46KB</span>","children":null,"spread":false},{"title":"to_factory","children":[{"title":"config.rb <span style='color:#111;'>279B</span>","children":null,"spread":false},{"title":"klass_inference.rb <span style='color:#111;'>957B</span>","children":null,"spread":false},{"title":"representation.rb <span style='color:#111;'>1.04KB</span>","children":null,"spread":false},{"title":"collation.rb <span style='color:#111;'>1.20KB</span>","children":null,"spread":false},{"title":"file_writer.rb <span style='color:#111;'>1.10KB</span>","children":null,"spread":false},{"title":"file_sync.rb <span style='color:#111;'>1.15KB</span>","children":null,"spread":false},{"title":"parsing","children":[{"title":"ruby_parsing_helpers.rb <span style='color:#111;'>300B</span>","children":null,"spread":false},{"title":"file.rb <span style='color:#111;'>2.38KB</span>","children":null,"spread":false}],"spread":false},{"title":"version.rb <span style='color:#111;'>41B</span>","children":null,"spread":false},{"title":"generation","children":[{"title":"attribute.rb <span style='color:#111;'>2.00KB</span>","children":null,"spread":false},{"title":"factory.rb <span style='color:#111;'>1.46KB</span>","children":null,"spread":false}],"spread":false},{"title":"finders","children":[{"title":"factory.rb <span style='color:#111;'>559B</span>","children":null,"spread":false},{"title":"model.rb <span style='color:#111;'>1.34KB</span>","children":null,"spread":false}],"spread":false},{"title":"options_parser.rb <span style='color:#111;'>714B</span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'>3.41KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明