Diff of the two buildlogs: -- --- b1/build.log 2021-04-05 16:59:57.263863341 +0000 +++ b2/build.log 2021-04-05 17:01:01.177363486 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun May 8 11:22:23 -12 2022 -I: pbuilder-time-stamp: 1652052143 +I: Current time: Tue Apr 6 06:59:58 +14 2021 +I: pbuilder-time-stamp: 1617641998 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration @@ -17,7 +17,7 @@ I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error -gpgv: Signature made Thu Oct 4 09:33:29 2018 -12 +gpgv: Signature made Fri Oct 5 11:33:29 2018 +14 gpgv: using RSA key 9CCD6B319DBF8E40AB1ABD1A89AF82B739CD217A gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./ruby-factory-bot_4.11.1-1.dsc @@ -30,136 +30,170 @@ dpkg-source: info: applying 0004-Fix-failing-tests-with-rails-5.2.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/21036/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/43743/tmp/hooks/D01_modify_environment starting +debug: Running on ionos1-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/43743/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/43743/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=16' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="0" [2]="3" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.0.3(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=15' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='e62df1c501b146efb741f470f4f40c10' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='21036' - PS1='# ' - PS2='> ' + INVOCATION_ID=5fbfca183e9a46e4a7a19903d9e92b75 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=43743 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.aRrozuLsYU/pbuilderrc_PTZh --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.aRrozuLsYU/b1 --logfile b1/build.log ruby-factory-bot_4.11.1-1.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://85.184.249.68:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.aRrozuLsYU/pbuilderrc_iLmA --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.aRrozuLsYU/b2 --logfile b2/build.log ruby-factory-bot_4.11.1-1.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://78.137.99.97:3128 I: uname -a - Linux ionos15-amd64 5.10.0-0.bpo.4-amd64 #1 SMP Debian 5.10.19-1~bpo10+1 (2021-03-13) x86_64 GNU/Linux + Linux i-capture-the-hostname 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux I: ls -l /bin total 5116 - -rwxr-xr-x 1 root root 1168776 Apr 17 2019 bash - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bunzip2 - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bzcat - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2227 Jul 10 2019 bzdiff - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Jun 24 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3641 Jul 10 2019 bzgrep - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bzip2 - -rwxr-xr-x 1 root root 14328 Jul 10 2019 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 10 2019 bzmore - -rwxr-xr-x 1 root root 43744 Feb 28 2019 cat - -rwxr-xr-x 1 root root 64320 Feb 28 2019 chgrp - -rwxr-xr-x 1 root root 64288 Feb 28 2019 chmod - -rwxr-xr-x 1 root root 72512 Feb 28 2019 chown - -rwxr-xr-x 1 root root 146880 Feb 28 2019 cp - -rwxr-xr-x 1 root root 121464 Jan 17 2019 dash - -rwxr-xr-x 1 root root 109408 Feb 28 2019 date - -rwxr-xr-x 1 root root 76712 Feb 28 2019 dd - -rwxr-xr-x 1 root root 93744 Feb 28 2019 df - -rwxr-xr-x 1 root root 138856 Feb 28 2019 dir - -rwxr-xr-x 1 root root 84288 Jan 9 2019 dmesg - lrwxrwxrwx 1 root root 8 Sep 26 2018 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Sep 26 2018 domainname -> hostname - -rwxr-xr-x 1 root root 39520 Feb 28 2019 echo - -rwxr-xr-x 1 root root 28 Jan 7 2019 egrep - -rwxr-xr-x 1 root root 35424 Feb 28 2019 false - -rwxr-xr-x 1 root root 28 Jan 7 2019 fgrep - -rwxr-xr-x 1 root root 68880 Jan 9 2019 findmnt - -rwsr-xr-x 1 root root 34896 Apr 22 2020 fusermount - -rwxr-xr-x 1 root root 198976 Jan 7 2019 grep - -rwxr-xr-x 2 root root 2345 Jan 5 2019 gunzip - -rwxr-xr-x 1 root root 6375 Jan 5 2019 gzexe - -rwxr-xr-x 1 root root 98048 Jan 5 2019 gzip - -rwxr-xr-x 1 root root 26696 Sep 26 2018 hostname - -rwxr-xr-x 1 root root 68552 Feb 28 2019 ln - -rwxr-xr-x 1 root root 56760 Jul 26 2018 login - -rwxr-xr-x 1 root root 138856 Feb 28 2019 ls - -rwxr-xr-x 1 root root 108624 Jan 9 2019 lsblk - -rwxr-xr-x 1 root root 89088 Feb 28 2019 mkdir - -rwxr-xr-x 1 root root 68544 Feb 28 2019 mknod - -rwxr-xr-x 1 root root 43808 Feb 28 2019 mktemp - -rwxr-xr-x 1 root root 43008 Jan 9 2019 more - -rwsr-xr-x 1 root root 51280 Jan 9 2019 mount - -rwxr-xr-x 1 root root 14408 Jan 9 2019 mountpoint - -rwxr-xr-x 1 root root 138728 Feb 28 2019 mv - lrwxrwxrwx 1 root root 8 Sep 26 2018 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Feb 14 2019 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 39616 Feb 28 2019 pwd - lrwxrwxrwx 1 root root 4 Apr 17 2019 rbash -> bash - -rwxr-xr-x 1 root root 47776 Feb 28 2019 readlink - -rwxr-xr-x 1 root root 68416 Feb 28 2019 rm - -rwxr-xr-x 1 root root 47776 Feb 28 2019 rmdir - -rwxr-xr-x 1 root root 23312 Jan 21 2019 run-parts - -rwxr-xr-x 1 root root 122224 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Apr 23 02:47 sh -> dash - -rwxr-xr-x 1 root root 39552 Feb 28 2019 sleep - -rwxr-xr-x 1 root root 80672 Feb 28 2019 stty - -rwsr-xr-x 1 root root 63568 Jan 9 2019 su - -rwxr-xr-x 1 root root 35488 Feb 28 2019 sync - -rwxr-xr-x 1 root root 445560 Apr 23 2019 tar - -rwxr-xr-x 1 root root 14440 Jan 21 2019 tempfile - -rwxr-xr-x 1 root root 97152 Feb 28 2019 touch - -rwxr-xr-x 1 root root 35424 Feb 28 2019 true - -rwxr-xr-x 1 root root 14328 Apr 22 2020 ulockmgr_server - -rwsr-xr-x 1 root root 34888 Jan 9 2019 umount - -rwxr-xr-x 1 root root 39584 Feb 28 2019 uname - -rwxr-xr-x 2 root root 2345 Jan 5 2019 uncompress - -rwxr-xr-x 1 root root 138856 Feb 28 2019 vdir - -rwxr-xr-x 1 root root 34896 Jan 9 2019 wdctl - -rwxr-xr-x 1 root root 946 Jan 21 2019 which - lrwxrwxrwx 1 root root 8 Sep 26 2018 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1983 Jan 5 2019 zcat - -rwxr-xr-x 1 root root 1677 Jan 5 2019 zcmp - -rwxr-xr-x 1 root root 5879 Jan 5 2019 zdiff - -rwxr-xr-x 1 root root 29 Jan 5 2019 zegrep - -rwxr-xr-x 1 root root 29 Jan 5 2019 zfgrep - -rwxr-xr-x 1 root root 2080 Jan 5 2019 zforce - -rwxr-xr-x 1 root root 7584 Jan 5 2019 zgrep - -rwxr-xr-x 1 root root 2205 Jan 5 2019 zless - -rwxr-xr-x 1 root root 1841 Jan 5 2019 zmore - -rwxr-xr-x 1 root root 4552 Jan 5 2019 znew -I: user script /srv/workspace/pbuilder/21036/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1168776 Apr 18 2019 bash + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bunzip2 + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bzcat + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2227 Jul 11 2019 bzdiff + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Jun 25 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3641 Jul 11 2019 bzgrep + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bzip2 + -rwxr-xr-x 1 root root 14328 Jul 11 2019 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 11 2019 bzmore + -rwxr-xr-x 1 root root 43744 Mar 1 2019 cat + -rwxr-xr-x 1 root root 64320 Mar 1 2019 chgrp + -rwxr-xr-x 1 root root 64288 Mar 1 2019 chmod + -rwxr-xr-x 1 root root 72512 Mar 1 2019 chown + -rwxr-xr-x 1 root root 146880 Mar 1 2019 cp + -rwxr-xr-x 1 root root 121464 Jan 18 2019 dash + -rwxr-xr-x 1 root root 109408 Mar 1 2019 date + -rwxr-xr-x 1 root root 76712 Mar 1 2019 dd + -rwxr-xr-x 1 root root 93744 Mar 1 2019 df + -rwxr-xr-x 1 root root 138856 Mar 1 2019 dir + -rwxr-xr-x 1 root root 84288 Jan 10 2019 dmesg + lrwxrwxrwx 1 root root 8 Sep 27 2018 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Sep 27 2018 domainname -> hostname + -rwxr-xr-x 1 root root 39520 Mar 1 2019 echo + -rwxr-xr-x 1 root root 28 Jan 8 2019 egrep + -rwxr-xr-x 1 root root 35424 Mar 1 2019 false + -rwxr-xr-x 1 root root 28 Jan 8 2019 fgrep + -rwxr-xr-x 1 root root 68880 Jan 10 2019 findmnt + -rwsr-xr-x 1 root root 34896 Apr 23 2020 fusermount + -rwxr-xr-x 1 root root 198976 Jan 8 2019 grep + -rwxr-xr-x 2 root root 2345 Jan 6 2019 gunzip + -rwxr-xr-x 1 root root 6375 Jan 6 2019 gzexe + -rwxr-xr-x 1 root root 98048 Jan 6 2019 gzip + -rwxr-xr-x 1 root root 26696 Sep 27 2018 hostname + -rwxr-xr-x 1 root root 68552 Mar 1 2019 ln + -rwxr-xr-x 1 root root 56760 Jul 27 2018 login + -rwxr-xr-x 1 root root 138856 Mar 1 2019 ls + -rwxr-xr-x 1 root root 108624 Jan 10 2019 lsblk + -rwxr-xr-x 1 root root 89088 Mar 1 2019 mkdir + -rwxr-xr-x 1 root root 68544 Mar 1 2019 mknod + -rwxr-xr-x 1 root root 43808 Mar 1 2019 mktemp + -rwxr-xr-x 1 root root 43008 Jan 10 2019 more + -rwsr-xr-x 1 root root 51280 Jan 10 2019 mount + -rwxr-xr-x 1 root root 14408 Jan 10 2019 mountpoint + -rwxr-xr-x 1 root root 138728 Mar 1 2019 mv + lrwxrwxrwx 1 root root 8 Sep 27 2018 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Feb 15 2019 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 39616 Mar 1 2019 pwd + lrwxrwxrwx 1 root root 4 Apr 18 2019 rbash -> bash + -rwxr-xr-x 1 root root 47776 Mar 1 2019 readlink + -rwxr-xr-x 1 root root 68416 Mar 1 2019 rm + -rwxr-xr-x 1 root root 47776 Mar 1 2019 rmdir + -rwxr-xr-x 1 root root 23312 Jan 22 2019 run-parts + -rwxr-xr-x 1 root root 122224 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Apr 6 07:00 sh -> bash + lrwxrwxrwx 1 root root 4 Mar 21 22:24 sh.distrib -> dash + -rwxr-xr-x 1 root root 39552 Mar 1 2019 sleep + -rwxr-xr-x 1 root root 80672 Mar 1 2019 stty + -rwsr-xr-x 1 root root 63568 Jan 10 2019 su + -rwxr-xr-x 1 root root 35488 Mar 1 2019 sync + -rwxr-xr-x 1 root root 445560 Apr 24 2019 tar + -rwxr-xr-x 1 root root 14440 Jan 22 2019 tempfile + -rwxr-xr-x 1 root root 97152 Mar 1 2019 touch + -rwxr-xr-x 1 root root 35424 Mar 1 2019 true + -rwxr-xr-x 1 root root 14328 Apr 23 2020 ulockmgr_server + -rwsr-xr-x 1 root root 34888 Jan 10 2019 umount + -rwxr-xr-x 1 root root 39584 Mar 1 2019 uname + -rwxr-xr-x 2 root root 2345 Jan 6 2019 uncompress + -rwxr-xr-x 1 root root 138856 Mar 1 2019 vdir + -rwxr-xr-x 1 root root 34896 Jan 10 2019 wdctl + -rwxr-xr-x 1 root root 946 Jan 22 2019 which + lrwxrwxrwx 1 root root 8 Sep 27 2018 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1983 Jan 6 2019 zcat + -rwxr-xr-x 1 root root 1677 Jan 6 2019 zcmp + -rwxr-xr-x 1 root root 5879 Jan 6 2019 zdiff + -rwxr-xr-x 1 root root 29 Jan 6 2019 zegrep + -rwxr-xr-x 1 root root 29 Jan 6 2019 zfgrep + -rwxr-xr-x 1 root root 2080 Jan 6 2019 zforce + -rwxr-xr-x 1 root root 7584 Jan 6 2019 zgrep + -rwxr-xr-x 1 root root 2205 Jan 6 2019 zless + -rwxr-xr-x 1 root root 1841 Jan 6 2019 zmore + -rwxr-xr-x 1 root root 4552 Jan 6 2019 znew +I: user script /srv/workspace/pbuilder/43743/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -358,7 +392,7 @@ Get: 145 http://deb.debian.org/debian buster/main amd64 ruby-rspec-its all 1.2.0-3 [6296 B] Get: 146 http://deb.debian.org/debian buster/main amd64 ruby-sqlite3 amd64 1.3.13-1+b2 [41.5 kB] Get: 147 http://deb.debian.org/debian buster/main amd64 ruby-timecop all 0.8.0-1 [9536 B] -Fetched 44.0 MB in 1s (67.3 MB/s) +Fetched 44.0 MB in 1s (48.2 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19195 files and directories currently installed.) @@ -978,7 +1012,7 @@ fakeroot is already the newest version (1.23-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/ruby-factory-bot-4.11.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b +I: Running cd /build/ruby-factory-bot-4.11.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b dpkg-buildpackage: info: source package ruby-factory-bot dpkg-buildpackage: info: source version 4.11.1-1 dpkg-buildpackage: info: source distribution unstable @@ -1091,167 +1125,251 @@ RUBYLIB=/build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby:. GEM_PATH=debian/ruby-factory-bot/usr/share/rubygems-integration/all:/var/lib/gems/2.5.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.5.0:/usr/share/rubygems-integration/2.5.0:/usr/share/rubygems-integration/all ruby2.5 -S rake -f debian/ruby-tests.rake /usr/bin/ruby2.5 /usr/bin/rspec --pattern spec/\{\*_spec.rb,factory_bot/\*\*/\*_spec.rb\} --format documentation -Randomized with seed 63243 +Randomized with seed 14199 -FactoryBot::Factory when defined with a class instead of a name +FactoryBot::DefinitionProxy#transient +DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic +attributes instead by wrapping the attribute value in a block: + +attribute_name { "attribute value" } + +To automatically update from static attributes to dynamic ones, +install rubocop-rspec and run: + +rubocop \ + --require rubocop-rspec \ + --only FactoryBot/AttributeDefinedStatically \ + --auto-correct + + (called from block (3 levels) in at /build/ruby-factory-bot-4.11.1/spec/factory_bot/definition_proxy_spec.rb:51) + makes all attributes added ignored + +FactoryBot::DefinitionProxy#sequence + creates a new sequence starting at 1 + creates a new sequence with an overridden starting vaue + creates a new sequence with a block + +FactoryBot::Factory for namespaced class + with a namespaced class with Namespace::Class syntax + sets build_class correctly + with a namespaced class with namespace/class syntax + sets build_class correctly + +FactoryBot::EvaluatorClassDefiner + evaluates the block in the context of the evaluator + returns an evaluator when accessing the evaluator class + only instance_execs the block once even when returning nil + adds each attribute to the evaluator + sets attributes on the evaluator class + with a custom evaluator as a parent class + bases its attribute lists on itself and its parent evaluator + +FactoryBot::DefinitionProxy adding callbacks + #after(:create) + should have callback :after_create + #before(:stub, :create) + should have callback :before_create + should have callback :before_stub + #after(:stub) + should have callback :after_stub + #after(:stub, :create) + should have callback :after_stub + should have callback :after_create + #after(:build) + should have callback :after_build + #callback(:after_stub, :before_create) + should have callback :before_create + should have callback :after_stub + +FactoryBot::Definition + should delegate :declare_attribute + +FactoryBot::Attribute::Dynamic with a string name name - should eq :argument_error + should eq :name + +FactoryBot::Callback + runs its block with no parameters + has a name + raises if an invalid callback name is assigned + runs its block with two parameters + allows valid callback names to be assigned + runs its block with one parameter + converts strings to symbols + +FactoryBot::StrategyCalculator + when a class + returns the class passed + when a symbol + finds the strategy by name + returns the strategy found + +FactoryBot::Definition with a name + creates a new attribute list with the name passed + +FactoryBot::Definition adding callbacks + maintains a list of callbacks + +FactoryBot::Factory when defined with a class instead of a name build_class should eq ArgumentError + name + should eq :argument_error -FactoryBot::Factory when defined with a custom class - build_class - should eq Float +FactoryBot::AttributeList#define_attribute + maintains a list of attributes + raises if an attribute has already been defined + returns the attribute -FactoryBot::Factory with a name ending in s - build_class - should eq Business +FactoryBot::DefinitionProxy#method_missing + declares a dynamic attribute +DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic +attributes instead by wrapping the attribute value in a block: + +attribute_name { "attribute value" } + +To automatically update from static attributes to dynamic ones, +install rubocop-rspec and run: + +rubocop \ + --require rubocop-rspec \ + --only FactoryBot/AttributeDefinedStatically \ + --auto-correct + + (called from block (2 levels) in at /build/ruby-factory-bot-4.11.1/spec/factory_bot/definition_proxy_spec.rb:73) + declares a static attribute + declares an implicit declaration without args or a block + declares an association when :factory is passed + +FactoryBot::Factory human names + factory name with aliases + names + should eq [:happy_user, :gleeful_user, :person] + human_names + should eq ["happy user", "gleeful user", "person"] + factory name with big letters + human_names + should eq ["lol"] + names + should eq [:LoL] + factory name with underscores + human_names + should eq ["happy user"] + names + should eq [:happy_user] + factory name without underscores + human_names + should eq ["user"] + names + should eq [:user] + +FactoryBot::Attribute + should not be association + raises an error when defining an attribute writer name - should eq :business + should eq :user + +FactoryBot::Factory with a string for a name + name + should eq :string + +FactoryBot::Strategy::Build + it should behave like strategy with association support + finds the factory with the correct factory name + runs the factory with the correct overrides + it should behave like strategy with strategy: :build + finds the factory with the correct factory name + runs the factory with the correct overrides + it should behave like strategy with callbacks + runs the callbacks [:after_build] with the evaluation's object + returns the object from the evaluation + +FactoryBot::Factory running a factory + returns the result from the strategy when running + creates the right strategy using the build class when running + calls the block and returns the result + +FactoryBot::AttributeList#associations + returns associations FactoryBot::Strategy::Stub it should behave like strategy with association support + finds the factory with the correct factory name runs the factory with the correct overrides + it should behave like strategy with callbacks + runs the callbacks [:after_stub] with the evaluation's object + returns the object from the evaluation + it should behave like strategy with strategy: :build finds the factory with the correct factory name + runs the factory with the correct overrides asking for a result - should not be new record should not be destroyed - assigns created_at should be persisted - overriding persistence method: #delete - raises an informative error if the method is called - overrides the method with any arity - overriding persistence method: #touch + assigns created_at + should not be new record + overriding persistence method: #update_attribute overrides the method with any arity raises an informative error if the method is called - overriding persistence method: #update_attribute + overriding persistence method: #toggle! + overrides the method with any arity raises an informative error if the method is called + overriding persistence method: #save overrides the method with any arity - overriding persistence method: #connection raises an informative error if the method is called + overriding persistence method: #save! overrides the method with any arity - overriding persistence method: #update_attributes raises an informative error if the method is called + overriding persistence method: #update_columns overrides the method with any arity - overriding persistence method: #reload + raises an informative error if the method is called + overriding persistence method: #touch overrides the method with any arity raises an informative error if the method is called overriding persistence method: #update - raises an informative error if the method is called - overrides the method with any arity - overriding persistence method: #decrement! overrides the method with any arity raises an informative error if the method is called overriding persistence method: #increment! overrides the method with any arity raises an informative error if the method is called - overriding persistence method: #save! + overriding persistence method: #reload overrides the method with any arity raises an informative error if the method is called - overriding persistence method: #save + overriding persistence method: #update_attributes! + raises an informative error if the method is called overrides the method with any arity + overriding persistence method: #decrement! raises an informative error if the method is called - overriding persistence method: #update! + overrides the method with any arity + overriding persistence method: #delete overrides the method with any arity raises an informative error if the method is called - overriding persistence method: #update_column + overriding persistence method: #destroy! overrides the method with any arity raises an informative error if the method is called - overriding persistence method: #update_attributes! + overriding persistence method: #destroy raises an informative error if the method is called overrides the method with any arity - overriding persistence method: #toggle! + overriding persistence method: #update_attributes overrides the method with any arity raises an informative error if the method is called - overriding persistence method: #destroy + overriding persistence method: #connection overrides the method with any arity raises an informative error if the method is called - overriding persistence method: #update_columns - raises an informative error if the method is called + overriding persistence method: #update_column overrides the method with any arity - overriding persistence method: #destroy! + raises an informative error if the method is called + overriding persistence method: #update! raises an informative error if the method is called overrides the method with any arity - it should behave like strategy with strategy: :build - finds the factory with the correct factory name - runs the factory with the correct overrides - it should behave like strategy with callbacks - runs the callbacks [:after_stub] with the evaluation's object - returns the object from the evaluation - -FactoryBot::Attribute::Static with a string name - name - should eq :name -FactoryBot after defining an alias - should include :test_suffix_id - should include :test - -FactoryBot::Attribute::Dynamic - with a block returning a static value - returns the value when executing the proc - name - should eq :first_name - with a block returning a sequence - raises a sequence abuse error - with a block referencing an attribute on the attribute - evaluates the attribute from the attribute - with a block returning its block-level variable - returns self when executing the proc - -FactoryBot::Callback - has a name - runs its block with two parameters - runs its block with no parameters - runs its block with one parameter - raises if an invalid callback name is assigned - allows valid callback names to be assigned - converts strings to symbols - -FactoryBot::DefinitionProxy adding callbacks - #after(:create) - should have callback :after_create - #before(:stub, :create) - should have callback :before_create - should have callback :before_stub - #after(:stub) - should have callback :after_stub - #after(:build) - should have callback :after_build - #after(:stub, :create) - should have callback :after_stub - should have callback :after_create - #callback(:after_stub, :before_create) - should have callback :after_stub - should have callback :before_create - -FactoryBot::DeclarationList#declare_attribute - when not overridable - adds the declaration to the list - when overridable - adds the declaration to the list - deletes declarations with the same name - -FactoryBot::DefinitionProxy#association - declares an association - declares an association with options - -FactoryBot::Strategy::Build - it should behave like strategy with callbacks - runs the callbacks [:after_build] with the evaluation's object - returns the object from the evaluation - it should behave like strategy with strategy: :build - finds the factory with the correct factory name - runs the factory with the correct overrides - it should behave like strategy with association support - runs the factory with the correct overrides - finds the factory with the correct factory name +FactoryBot::Factory when defined with a custom class + build_class + should eq Float -FactoryBot::AttributeList generating names - knows all its #names for #ignored attributes - knows all its #names for #associations - knows all its #names for #non_ignored attributes - knows all its #names +FactoryBot::Definition#to_create + returns the assigned value when given a block + to_create + should be nil FactoryBot::Attribute::Association with a string name name @@ -1259,301 +1377,301 @@ FactoryBot::NullFactory should delegate :defined_traits + should delegate :callbacks should delegate :constructor should delegate :attributes - should delegate :callbacks - class_name - should be nil + evaluator_class + should eq FactoryBot::Evaluator compile should be nil attributes should be an instance of FactoryBot::AttributeList - evaluator_class - should eq FactoryBot::Evaluator + class_name + should be nil -FactoryBot::Factory when given a class that overrides #to_s - sets build_class correctly +FactoryBot::AttributeList#define_attribute with a named attribute list + raises when the attribute is a self-referencing association + does not raise when the attribute is not a self-referencing association -FactoryBot::Factory running a factory - returns the result from the strategy when running - creates the right strategy using the build class when running - calls the block and returns the result +FactoryBot::DeclarationList#attributes + defines each attribute on the attribute list + returns an AttributeList -FactoryBot::Decorator::DisallowsDuplicatesRegistry - delegates #register to the registry when not registered - raises when attempting to #register a previously registered strategy +definition loading + with several factories files under spec/factories + it should behave like finds definitions + should load definitions from spec/factories/post_factory.rb + should load definitions from spec/factories/person_factory.rb + with deeply nested factory files under test + it should behave like finds definitions + should load definitions from test/factories/subdirectory/person_factory.rb + should load definitions from test/factories/subdirectory/post_factory.rb + with a factories file under test/factories + it should behave like finds definitions + should load definitions from test/factories/post_factory.rb + with several factories files under test/factories + it should behave like finds definitions + should load definitions from test/factories/post_factory.rb + should load definitions from test/factories/person_factory.rb + with several factories files under spec/factories in non-alphabetical order + loads the files in the right order + with factories.rb + it should behave like finds definitions + should load definitions from factories.rb + with a factories file under test + it should behave like finds definitions + should load definitions from test/factories.rb + with nested and unnested factories files under spec + it should behave like finds definitions + should load definitions from spec/factories.rb + should load definitions from spec/factories/post_factory.rb + should load definitions from spec/factories/person_factory.rb + with nested and unnested factories files under test + it should behave like finds definitions + should load definitions from test/factories/person_factory.rb + should load definitions from test/factories/post_factory.rb + should load definitions from test/factories.rb + with several factories files under test/factories in non-alphabetical order + loads the files in the right order + with deeply nested factory files under spec + it should behave like finds definitions + should load definitions from spec/factories/subdirectory/person_factory.rb + should load definitions from spec/factories/subdirectory/post_factory.rb + with a factories file under spec + it should behave like finds definitions + should load definitions from spec/factories.rb + with a factories file under spec/factories + it should behave like finds definitions + should load definitions from spec/factories/post_factory.rb -FactoryBot::StrategyCalculator - when a class - returns the class passed - when a symbol - finds the strategy by name - returns the strategy found +FactoryBot::DefinitionProxy#initialize_with + defines the constructor on the definition + +FactoryBot::Definition defining traits + adds only unique traits + maintains a list of traits + +FactoryBot::Attribute::Sequence + assigns the next value in the sequence + name + should eq :first_name + +FactoryBot::AttributeList filter based on ignored attributes + filters #non_ignored attributes + filters #ignored attributes + +FactoryBot::DeclarationList#declare_attribute + when not overridable + adds the declaration to the list + when overridable + deletes declarations with the same name + adds the declaration to the list + +FactoryBot::AttributeList#apply_attributes + adds attributes in the order defined regardless of attribute type + +FactoryBot::Strategy::AttributesFor + does not run the to_create block + returns the hash from the evaluation + it should behave like strategy without association support + returns nil when accessing an association FactoryBot::Sequence a sequence with aliases using default value - names - should eq [:test, :alias, :other] behaves like a sequence after rewinding next should eq "=1" + next + should eq "=1" when incrementing next should eq "=2" - next - should eq "=1" + names + should eq [:test, :alias, :other] a basic sequence without a block behaves like a sequence - next - should eq 1 - after rewinding - next - should eq 1 when incrementing next should eq 2 - a custom sequence without a block + after rewinding + next + should eq 1 + next + should eq 1 + iterating over items in an enumerator + navigates to the next items until no items remain behaves like a sequence next - should eq "A" + should eq "=foo" when incrementing next - should eq "B" + should eq "=bar" after rewinding next - should eq "A" - a custom sequence + should eq "=foo" + a sequence with custom value and aliases behaves like a sequence - next - should eq "=A" after rewinding next - should eq "=A" + should eq "=3" when incrementing next - should eq "=B" + should eq "=4" + next + should eq "=3" + names + should eq [:test, :alias, :other] + a basic sequence + names + should eq [:test] + name + should eq :test + behaves like a sequence + next + should eq "=1" + when incrementing + next + should eq "=2" + after rewinding + next + should eq "=1" a custom sequence and scope increments within the correct scope - after rewinding - increments within the correct scope when incrementing increments within the correct scope - a sequence with custom value and aliases - names - should eq [:test, :alias, :other] + after rewinding + increments within the correct scope + a custom sequence behaves like a sequence after rewinding next - should eq "=3" + should eq "=A" next - should eq "=3" + should eq "=A" when incrementing next - should eq "=4" - iterating over items in an enumerator - navigates to the next items until no items remain + should eq "=B" + a custom sequence without a block behaves like a sequence next - should eq "=foo" + should eq "A" when incrementing next - should eq "=bar" - after rewinding - next - should eq "=foo" - a basic sequence - name - should eq :test - names - should eq [:test] - behaves like a sequence + should eq "B" after rewinding next - should eq "=1" - when incrementing - next - should eq "=2" - next - should eq "=1" - -FactoryBot::DefinitionProxy#transient -DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic -attributes instead by wrapping the attribute value in a block: - -attribute_name { "attribute value" } - -To automatically update from static attributes to dynamic ones, -install rubocop-rspec and run: + should eq "A" -rubocop \ - --require rubocop-rspec \ - --only FactoryBot/AttributeDefinedStatically \ - --auto-correct +FactoryBot::Attribute::Static + returns the value when executing the proc + name + should eq :first_name - (called from block (3 levels) in at /build/ruby-factory-bot-4.11.1/spec/factory_bot/definition_proxy_spec.rb:51) - makes all attributes added ignored +FactoryBot::Attribute::Dynamic + name + should eq :first_name + with a block returning a sequence + raises a sequence abuse error + with a block returning a static value + returns the value when executing the proc + with a block returning its block-level variable + returns self when executing the proc + with a block referencing an attribute on the attribute + evaluates the attribute from the attribute -FactoryBot::AttributeList#associations - returns associations +FactoryBot aliases + aliases for an attribute starting with an underscore + should not include :id + aliases for a foreign key + should include :test + should include :test_id + aliases for an attribute + should include :test + should include :test_id -FactoryBot::DeclarationList#attributes - returns an AttributeList - defines each attribute on the attribute list +FactoryBot::DefinitionProxy#association + declares an association with options + declares an association FactoryBot::Registry - iterates registered objects - knows that an object is registered by symbol - clears registered factories - does not include duplicate objects with registered under different names - should be a kind of Enumerable adds and returns the object registered finds a registered object with square brackets - knows when an object is not registered raises when an object cannot be found - knows that an object is registered by string + should be a kind of Enumerable + knows that an object is registered by symbol + clears registered factories finds a registered object + iterates registered objects + knows when an object is not registered + knows that an object is registered by string + does not include duplicate objects with registered under different names -FactoryBot::Definition - should delegate :declare_attribute - -FactoryBot::DefinitionProxy#to_create - accepts a block to run in place of #save! +FactoryBot::Definition#overridable + sets the declaration list as overridable -FactoryBot::Factory with a string for a name - name - should eq :string +FactoryBot::DefinitionProxy#factory + without options + with a block + with options -FactoryBot::DefinitionProxy#add_attribute -DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic -attributes instead by wrapping the attribute value in a block: +FactoryBot after defining an alias + should include :test_suffix_id + should include :test -attribute_name { "attribute value" } +FactoryBot + finds a registered trait + finds a registered sequence + finds a registered factory -To automatically update from static attributes to dynamic ones, -install rubocop-rspec and run: +FactoryBot::Declaration::Implicit + with a known sequence + should be a kind of FactoryBot::Attribute::Sequence + should not be association + with a known factory + should be association + factory + should eq :author -rubocop \ - --require rubocop-rspec \ - --only FactoryBot/AttributeDefinedStatically \ - --auto-correct +FactoryBot::Factory when defined with a custom class name + build_class + should eq ArgumentError - (called from block (2 levels) in at /build/ruby-factory-bot-4.11.1/spec/factory_bot/definition_proxy_spec.rb:12) - declares a static attribute on the factory - declares a dynamic attribute on the factory - raises if both a block and value are given +FactoryBot::DefinitionProxy#to_create + accepts a block to run in place of #save! FactoryBot::Strategy::Create runs a custom create block + it should behave like strategy with association support + runs the factory with the correct overrides + finds the factory with the correct factory name it should behave like strategy with callbacks runs the callbacks [:after_build, :before_create, :after_create] with the evaluation's object returns the object from the evaluation - it should behave like strategy with association support - finds the factory with the correct factory name - runs the factory with the correct overrides - -FactoryBot::DefinitionProxy#factory - with a block - with options - without options - -FactoryBot::Attribute::Sequence - assigns the next value in the sequence - name - should eq :first_name - -FactoryBot::Factory for namespaced class - with a namespaced class with namespace/class syntax - sets build_class correctly - with a namespaced class with Namespace::Class syntax - sets build_class correctly - -FactoryBot::DefinitionProxy#sequence - creates a new sequence starting at 1 - creates a new sequence with a block - creates a new sequence with an overridden starting vaue - -FactoryBot::DefinitionProxy#initialize_with - defines the constructor on the definition FactoryBot::NullObject responds to the given methods does not respond to other methods FactoryBot::Attribute::Association - should be association builds the association when calling the proc builds the association when calling the proc + should be association name should eq :author -FactoryBot::Factory human names - factory name with big letters - names - should eq [:LoL] - human_names - should eq ["lol"] - factory name with aliases - names - should eq [:happy_user, :gleeful_user, :person] - human_names - should eq ["happy user", "gleeful user", "person"] - factory name without underscores - human_names - should eq ["user"] - names - should eq [:user] - factory name with underscores - names - should eq [:happy_user] - human_names - should eq ["happy user"] - -FactoryBot::Strategy::AttributesFor - returns the hash from the evaluation - does not run the to_create block - it should behave like strategy without association support - returns nil when accessing an association - -FactoryBot::Attribute - raises an error when defining an attribute writer - should not be association - name - should eq :user - -FactoryBot::AttributeList#apply_attributes - adds attributes in the order defined regardless of attribute type - -FactoryBot::AttributeList filter based on ignored attributes - filters #ignored attributes - filters #non_ignored attributes - -FactoryBot::Attribute::Dynamic with a string name +FactoryBot::Attribute::Static with a string name name should eq :name -FactoryBot::EvaluatorClassDefiner - adds each attribute to the evaluator - evaluates the block in the context of the evaluator - only instance_execs the block once even when returning nil - sets attributes on the evaluator class - returns an evaluator when accessing the evaluator class - with a custom evaluator as a parent class - bases its attribute lists on itself and its parent evaluator - -FactoryBot - finds a registered trait - finds a registered sequence - finds a registered factory - -FactoryBot::Definition with a name - creates a new attribute list with the name passed - -FactoryBot::Definition#overridable - sets the declaration list as overridable +FactoryBot::Factory with a name ending in s + name + should eq :business + build_class + should eq Business -FactoryBot::DefinitionProxy#method_missing - declares an association when :factory is passed +FactoryBot::DefinitionProxy#add_attribute when the proxy ignores attributes + raises if both a block and value are given DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -1567,19 +1685,40 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (2 levels) in at /build/ruby-factory-bot-4.11.1/spec/factory_bot/definition_proxy_spec.rb:73) - declares a static attribute - declares an implicit declaration without args or a block - declares a dynamic attribute + (called from block (2 levels) in at /build/ruby-factory-bot-4.11.1/spec/factory_bot/definition_proxy_spec.rb:34) + declares a static attribute on the factory + declares a dynamic attribute on the factory -FactoryBot::Definition#to_create - returns the assigned value when given a block - to_create - should be nil +FactoryBot::AttributeList generating names + knows all its #names for #non_ignored attributes + knows all its #names for #associations + knows all its #names + knows all its #names for #ignored attributes -FactoryBot::DefinitionProxy#add_attribute when the proxy ignores attributes - declares a dynamic attribute on the factory +FactoryBot::Decorator::DisallowsDuplicatesRegistry + delegates #register to the registry when not registered + raises when attempting to #register a previously registered strategy + +FactoryBot::Factory + passes a custom creation block + returns associations + creates a new factory while overriding the parent class + has a build class + creates a new factory using the class of the parent + has a factory name + guesses the build class from the factory name + includes associations from the parent factory + overriding an attribute with an alias + discards the predefined value for the attribute + uses the passed in value for the alias + when overriding generated attributes with a hash + overrides a symbol parameter with a string parameter + returns the overridden value in the generated attributes + does not call a lazy attribute block for an overridden attribute + +FactoryBot::DefinitionProxy#add_attribute raises if both a block and value are given + declares a dynamic attribute on the factory DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -1593,88 +1732,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (2 levels) in at /build/ruby-factory-bot-4.11.1/spec/factory_bot/definition_proxy_spec.rb:34) + (called from block (2 levels) in at /build/ruby-factory-bot-4.11.1/spec/factory_bot/definition_proxy_spec.rb:12) declares a static attribute on the factory -definition loading - with several factories files under spec/factories in non-alphabetical order - loads the files in the right order - with a factories file under test/factories - it should behave like finds definitions - should load definitions from test/factories/post_factory.rb - with deeply nested factory files under spec - it should behave like finds definitions - should load definitions from spec/factories/subdirectory/person_factory.rb - should load definitions from spec/factories/subdirectory/post_factory.rb - with a factories file under spec - it should behave like finds definitions - should load definitions from spec/factories.rb - with a factories file under spec/factories - it should behave like finds definitions - should load definitions from spec/factories/post_factory.rb - with nested and unnested factories files under test - it should behave like finds definitions - should load definitions from test/factories/post_factory.rb - should load definitions from test/factories/person_factory.rb - should load definitions from test/factories.rb - with several factories files under spec/factories - it should behave like finds definitions - should load definitions from spec/factories/post_factory.rb - should load definitions from spec/factories/person_factory.rb - with a factories file under test - it should behave like finds definitions - should load definitions from test/factories.rb - with factories.rb - it should behave like finds definitions - should load definitions from factories.rb - with nested and unnested factories files under spec - it should behave like finds definitions - should load definitions from spec/factories/person_factory.rb - should load definitions from spec/factories/post_factory.rb - should load definitions from spec/factories.rb - with deeply nested factory files under test - it should behave like finds definitions - should load definitions from test/factories/subdirectory/person_factory.rb - should load definitions from test/factories/subdirectory/post_factory.rb - with several factories files under test/factories in non-alphabetical order - loads the files in the right order - with several factories files under test/factories - it should behave like finds definitions - should load definitions from test/factories/person_factory.rb - should load definitions from test/factories/post_factory.rb - -FactoryBot::Factory when defined with a custom class name - build_class - should eq ArgumentError - -FactoryBot::Attribute::Static - returns the value when executing the proc - name - should eq :first_name - -FactoryBot::Definition adding callbacks - maintains a list of callbacks - -FactoryBot::Factory - has a factory name - guesses the build class from the factory name - returns associations - includes associations from the parent factory - passes a custom creation block - creates a new factory while overriding the parent class - creates a new factory using the class of the parent - has a build class - when overriding generated attributes with a hash - returns the overridden value in the generated attributes - does not call a lazy attribute block for an overridden attribute - overrides a symbol parameter with a string parameter - overriding an attribute with an alias - discards the predefined value for the attribute - uses the passed in value for the alias - -FactoryBot::AttributeList#define_attribute with a named attribute list - does not raise when the attribute is not a self-referencing association - raises when the attribute is a self-referencing association +FactoryBot::Factory when given a class that overrides #to_s + sets build_class correctly FactoryBot::DefinitionProxy#trait DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic @@ -1693,48 +1755,24 @@ (called from block (3 levels) in at /build/ruby-factory-bot-4.11.1/spec/factory_bot/definition_proxy_spec.rb:198) declares a trait -FactoryBot::Declaration::Implicit - with a known sequence - should not be association - should be a kind of FactoryBot::Attribute::Sequence - with a known factory - should be association - factory - should eq :author - -FactoryBot::AttributeList#define_attribute - raises if an attribute has already been defined - maintains a list of attributes - returns the attribute - -FactoryBot::Definition defining traits - adds only unique traits - maintains a list of traits - -FactoryBot aliases - aliases for an attribute - should include :test - should include :test_id - aliases for a foreign key - should include :test - should include :test_id - aliases for an attribute starting with an underscore - should not include :id - -Finished in 0.68711 seconds (files took 0.86643 seconds to load) +Finished in 0.87246 seconds (files took 1.16 seconds to load) 273 examples, 0 failures -Randomized with seed 63243 +Randomized with seed 14199 /usr/bin/ruby2.5 /usr/bin/rspec --pattern spec/acceptance/\*\*/\*_spec.rb --format documentation -Randomized with seed 24523 +Randomized with seed 63398 -a custom create passing in an evaluator +initialize_with with FG attributes that are transient + name + should eq "Handsome Chap from .construct" + +multiple creates and transient attributes to dynamically build attribute lists DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -creation_name { "evaluator" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1744,13 +1782,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_spec.rb:97) - passes the evaluator to the custom create block - -finding factories keyed by class instead of symbol - when deprecated class lookup if allowed - allows interaction based on class name - when class lookup is disallowed + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:76) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -1764,51 +1796,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/keyed_by_class_spec.rb:9) - doesn't find the factory - -a stubbed instance overriding strategy - acts as if it is saved in the database - assigns associations and acts as if it is saved - -a generated stub instance - assigns an overridden attribute - allows decrement - disables reload - isn't changed - assigns associations that aren't new records - assigns a default attribute - allows increment - has an id - disables connection - generates unique ids - disables destroy - disables save - disables toggle! - allows toggle - assigns associations - disables decrement! - disables increment! - isn't a new record - disables update_attribute - -a built instance - assigns but does not save associations when using parent strategy - should be new record - when the :use_parent_strategy config option has been enabled - assigns but does not save associations - when the :use_parent_strategy config option has not been set - assigns and saves associations - -initialize_with doesn't duplicate assignment on attributes accessed from initialize_with - instantiates the correct object - -transient attributes - returning attributes for a factory + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:81) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -rockstar { true } +posts_count { 5 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1818,11 +1810,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:85) + allows the number of posts to be modified DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -upcased { false } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1832,12 +1825,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) - should not have key :rockstar + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:76) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -rockstar { true } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1847,11 +1839,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:81) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -upcased { false } +posts_count { 5 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1861,12 +1853,33 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) - should not have key :upcased + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:85) + generates the correct number of posts + +calling methods on the model instance + with the attribute being overridden + uses the overridden value + uses the overridden value during attributes_for + without the attribute being overridden + returns the correct value from the instance + returns nil during attributes_for + doesn't instantiate a record with attributes_for + with the referenced attribute being overridden + uses the overridden value during attributes_for + uses the overridden value + +initialize_with for a constructor that requires a block + executes the block correctly + +a stubbed instance overriding strategy + assigns associations and acts as if it is saved + acts as if it is saved in the database + +global skip_create DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -rockstar { true } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1876,11 +1889,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:80) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -upcased { false } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1890,12 +1903,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) - should not have key :four + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:90) + does not persist any record DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -rockstar { true } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1905,11 +1918,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:80) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -upcased { false } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1919,12 +1932,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) - should have key :email + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:90) + does not persist child records DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -rockstar { true } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1934,11 +1947,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:80) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -upcased { false } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1948,13 +1961,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) - should have key :name - with a transient variable assigned + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:90) + honors overridden to_create DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -rockstar { true } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1964,11 +1976,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:80) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -upcased { false } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1978,12 +1990,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) - generates the correct attributes on an upcased rockstar + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:90) + honors inline trait to_create + +including FactoryBot::Syntax::Methods when custom strategies have been declared DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -rockstar { true } +name { "Great" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1993,11 +2007,17 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/register_strategies_spec.rb:68) + allows adding additional strategies + +a created instance, specifying strategy: :build + saves associations (strategy: :build only affects build, not create) + +a custom create passing in an evaluator DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -upcased { false } +creation_name { "evaluator" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2007,12 +2027,15 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) - generates the correct attributes on a rockstar with a name + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_spec.rb:97) + passes the evaluator to the custom create block + +create multiple instances + without default attributes DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -rockstar { true } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2022,11 +2045,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_pair_spec.rb:7) + uses the default factory values DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -upcased { false } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2036,12 +2060,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) - generates the correct attributes on a rockstar + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_pair_spec.rb:7) + creates all the posts + length DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -rockstar { true } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2051,11 +2076,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_pair_spec.rb:7) + should eq 2 + +traits with callbacks DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -upcased { false } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2065,13 +2093,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) - generates the correct attributes on a groupie - without transient variables assigned + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:185) + executes callbacks in the order assigned + when the factory has a trait passed via arguments + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -rockstar { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2081,11 +2110,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:185) + should eq "JOHN" + when the factory has an implicit trait + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -upcased { false } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2095,17 +2127,17 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) - uses the default value of the attribute - using aliased 'ignore' method name - uses the default value of the attribute + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:185) + should eq "JOHN" -a generated attributes hash where order matters - factory without a parent +finding factories keyed by class instead of symbol + when deprecated class lookup if allowed + allows interaction based on class name + when class lookup is disallowed DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -static { 1 } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2115,11 +2147,18 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attributes_ordered_spec.rb:17) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/keyed_by_class_spec.rb:9) + doesn't find the factory + +applying inline traits + applies traits only to the instance generated for that call + +traits added via strategy + adding traits in create_list DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -static { 1 } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2129,13 +2168,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attributes_ordered_spec.rb:25) - assigns attributes in the order they're defined with preference to static attributes without a parent class - factory with a parent + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -static { 1 } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2145,11 +2182,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attributes_ordered_spec.rb:17) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) + creates all the records + length DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -static { 1 } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2159,31 +2198,28 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attributes_ordered_spec.rb:25) - assigns attributes in the order they're defined with preference to static attributes + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) +DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic +attributes instead by wrapping the attribute value in a block: -callbacks - runs both the after(:stub) callback on the factory and the inherited after(:stub) callback - runs the after(:stub) callback when stubbing - runs both the after(:build) and after(:create) callbacks when creating - runs the after(:build) callback when building - runs child callback after parent callback +admin { true } -a built instance with strategy: :create - assigns and saves associations - should be new record +To automatically update from static attributes to dynamic ones, +install rubocop-rspec and run: -association assignment from nested attributes - assigns the correct amount of comments - assigns the correct amount of comments when overridden +rubocop \ + --require rubocop-rspec \ + --only FactoryBot/AttributeDefinedStatically \ + --auto-correct -FactoryBot.lint - raises when a factory is invalid - allows for selective linting + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) + should eq 2 + adding traits in attributes_for + [:name] DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "assigned" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2193,12 +2229,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:36) - does not raise when all factories are valid + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "assigned" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2208,12 +2243,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:85) - allows for additional options without explicit factories + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) + should eq "John" + [:admin] DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "assigned" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2223,14 +2259,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:71) - allows for explicit factories and additional options - trait validation - enabled + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Yep" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2240,11 +2273,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:101) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) + should equal true + adding traits in build_list DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { nil } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2254,12 +2289,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (7 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:103) - raises if a trait produces an invalid object + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Yep" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2269,11 +2303,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:126) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) + builds all the records + length DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Yessir" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2283,13 +2319,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (7 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:128) - does not raise if a trait produces a valid object - disabled + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Yep" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2299,11 +2333,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:147) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) + should eq 2 + adding traits in create DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { nil } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2313,13 +2349,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (7 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:149) - does not raises if a trait produces an invalid object - factory strategy for linting + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Barbara" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2329,11 +2363,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:194) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) + doesn't modify the user factory + admin DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Bob" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2343,12 +2379,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:197) - uses the requested strategy during trait validation + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Barbara" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2358,14 +2393,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:174) - uses the requested strategy - -implicit traits containing callbacks + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) + should equal true + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -value { 0 } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2375,23 +2409,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:651) - only runs the callback once - -calling `build_stubbed` with a block - returns the stub instance - passes the stub instance - -calling `build` with a block - passes the built instance - returns the built instance - -`attributes_for` for a class whose constructor has required params - [:name] + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2401,20 +2423,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attributes_for_spec.rb:88) - should eq "John Doe" - -FactoryBot.rewind_sequences - resets all sequences back to their starting values - -transient sequences - increments sequences correctly - -traits used in associations + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) + should eq "JOE" + adding traits in build_stubbed + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { false } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2424,7 +2440,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:687) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -2438,12 +2454,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:690) - allows inline traits with the default association + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) + should eq "Jack" + admin DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { false } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2453,7 +2470,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:687) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -2467,12 +2484,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:690) - allows inline traits with a specific factory for an association + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) + should equal true + adding traits in build + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { false } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2482,7 +2501,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:687) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -2496,21 +2515,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:690) - allows assigning traits for the factory of an association - -an instance generated by a factory named a camel case string - registers the UserModel factory - -defining methods inside FactoryBot - raises with a meaningful message - -create multiple instances - with default attributes + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) + should eq "Joe" + admin DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "Through the Looking Glass" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2520,13 +2531,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:7) - overrides the default values - without the count + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "Through the Looking Glass" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2536,13 +2545,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:7) - raise ArgumentError with the proper error message - without default attributes + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) + should equal true + +initialize_with implicit constructor DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "Through the Looking Glass" } +name { "Great" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2552,12 +2562,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:7) - creates all the posts + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:136) + instantiates the correct object + +global to_create DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "Through the Looking Glass" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2567,13 +2579,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:7) - uses the default factory values - length + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:14) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "Through the Looking Glass" } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2583,13 +2593,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:7) - should eq 20 - with a block + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:24) + handles base to_create DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "Through the Looking Glass" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2599,14 +2608,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:7) - uses the new values - -register custom strategies + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:14) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great" } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2616,12 +2622,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/register_strategies_spec.rb:25) - allows using the *_pair method to build a list using a custom strategy + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:24) + handles child to_create with trait DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2631,12 +2637,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/register_strategies_spec.rb:25) - allows using the *_list method to build a list using a custom strategy + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:14) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great" } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2646,12 +2651,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/register_strategies_spec.rb:25) - allows adding additional strategies + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:24) + handles child to_create DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2661,20 +2666,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/register_strategies_spec.rb:25) - allows overriding default strategies - -binding a callback to multiple callbacks - binds the callback to stubbing - binds the callback to creation - does not bind the callback to building - -create multiple instances - without default attributes + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:14) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "Through the Looking Glass" } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2684,12 +2680,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_pair_spec.rb:7) - uses the default factory values + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:24) + uses to_create globally across FactoryBot.define DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "Through the Looking Glass" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2699,13 +2695,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_pair_spec.rb:7) - creates all the posts - length + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:14) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "Through the Looking Glass" } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2715,14 +2709,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_pair_spec.rb:7) - should eq 2 + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:24) + handles inline trait override -initialize_with has access to all attributes for construction +inline traits overriding existing attributes DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -ignored { "of course!" } +status { "pending" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2732,27 +2726,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:197) - assigns attributes correctly - -assigning overrides that are also private methods on object - y - should eq 12345 - more_format - should eq "format: Great" - some_funky_method - should eq "foobar!" - format - should eq "Great" - -a created instance, specifying strategy: :build - saves associations (strategy: :build only affects build, not create) - -custom callbacks + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:355) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -first_name { "John" } +status { "accepted" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2762,11 +2740,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/callbacks_spec.rb:147) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:357) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -last_name { "Doe" } +status { "declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2776,12 +2754,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/callbacks_spec.rb:148) - runs a custom before callback when the proper strategy executes + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:358) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -first_name { "John" } +status { "extended_declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2791,11 +2768,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/callbacks_spec.rb:147) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:362) + prefers inline traits over attributes on factories DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -last_name { "Doe" } +status { "pending" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2805,12 +2783,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/callbacks_spec.rb:148) - runs a custom callback without prepending before or after when the proper strategy executes + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:355) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -first_name { "John" } +status { "accepted" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2820,11 +2797,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/callbacks_spec.rb:147) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:357) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -last_name { "Doe" } +status { "declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2834,43 +2811,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/callbacks_spec.rb:148) - runs a custom after callback when the proper strategy executes - -syntax methods within dynamic attributes - allows syntax methods to be used when the block has an arity of 1 - can access syntax methods from dynamic attributes - can access syntax methods from dynamic attributes - can access methods already existing on the class - -defaulting `created_at` - defaults created_at for objects with created_at to the correct time with zone - defaults created_at for objects with created_at - doesn't allow setting created_at on an object that doesn't define it - allows overriding created_at for objects with created_at - doesn't add created_at to objects who don't have the method - -defaulting `updated_at` - allows overriding updated_at for objects with updated_at - defaults updated_at for objects with updated_at - doesn't add updated_at to objects who don't have the method - doesn't allow setting updated_at on an object that doesn't define it - -calling `create` with a block - returns the created instance - passes the created instance - -static attribute deprecation warnings - an implicit attribute via method missing - prints where attribute is declared - using #add_attribute - prints where attribute is declared - -skipping the default create + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:358) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -email { "john@example.com" } +status { "extended_declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2880,24 +2825,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/skip_create_spec.rb:9) - doesn't execute anything when creating the instance - -global initialize_with - handles inline trait override - handles child initialize_with - uses initialize_with globally across FactoryBot.define - handles child initialize_with with trait - handles base initialize_with - -initialize_with for a constructor that requires a block - executes the block correctly - -nested factories with different parents + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:362) + prefers inline trait attributes over default attributes DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Basic User" } +status { "pending" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2907,11 +2840,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:72) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:355) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +status { "accepted" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2921,15 +2854,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:75) - honors :parent over the factory block nesting - -attribute aliases - assigning an association by passing factory + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:357) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +status { "declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2939,13 +2868,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_aliases_spec.rb:12) - assigns attributes correctly - assigning an association by foreign key + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:358) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +status { "extended_declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2955,15 +2882,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_aliases_spec.rb:12) - doesn't assign both an association and its foreign key - -declaring attributes on a Factory that are private methods on Object - system + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:362) + prefers traits on a factory over default attributes DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -system { false } +status { "pending" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2973,11 +2897,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:7) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:355) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -link { "http://example.com" } +status { "accepted" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2987,11 +2911,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:8) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:357) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -sleep { 15 } +status { "declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3001,13 +2925,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:9) - should eq false - link + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:358) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -system { false } +status { "extended_declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3017,11 +2939,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:7) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:362) + prefers attributes on factories over attributes from non-inline traits DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -link { "http://example.com" } +status { "pending" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3031,11 +2954,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:8) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:355) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -sleep { 15 } +status { "accepted" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3045,13 +2968,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:9) - should eq "http://example.com" - sleep + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:357) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -system { false } +status { "declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3061,11 +2982,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:7) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:358) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -link { "http://example.com" } +status { "extended_declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3075,11 +2996,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:8) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:362) + prefers overridden attributes over attributes from traits, inline traits, or attributes on factories DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -sleep { 15 } +status { "pending" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3089,16 +3011,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:9) - should eq -5 - -attribute overrides - with an admin posting - secure + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:355) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +status { "accepted" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3108,11 +3025,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/overrides_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:357) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "default title" } +status { "declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3122,14 +3039,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/overrides_spec.rb:24) - should eq false - with a non-admin posting - secure + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:358) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +status { "extended_declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3139,11 +3053,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/overrides_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:362) + prefers inline trait attributes over traits on a factory DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "default title" } +status { "pending" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3153,14 +3068,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/overrides_spec.rb:24) - should be nil - with no user posting - secure + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:355) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +status { "accepted" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3170,11 +3082,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/overrides_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:357) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "default title" } +status { "declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3184,14 +3096,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/overrides_spec.rb:24) - should be nil - -modifying inherited factories with traits + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:358) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Female" } +status { "extended_declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3201,11 +3110,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:6) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:362) + returns the default status + +attributes defined using Symbol#to_proc DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Male" } +password { "foo" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3215,11 +3127,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:7) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/definition_spec.rb:26) + assigns values correctly DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +password { "foo" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3229,11 +3142,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:10) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/definition_spec.rb:26) + assigns value with override correctly DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -age { 17 } +password { "foo" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3243,11 +3157,15 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:11) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/definition_spec.rb:26) + assigns overridden value correctly + +traits and dynamic attributes that are applied simultaneously + email DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Female" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3257,11 +3175,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:18) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:310) + should eq "John@example.com" + combined DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -age { 25 } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3271,11 +3191,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:19) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:310) + should eq "John " + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Male" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3285,12 +3207,18 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:23) - returns the correct value for overridden attributes from traits + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:310) + should eq "John" + +accessing methods from the instance within a dynamic attribute that is also a private method on object + more_format + should eq "format: This is an awesome format" + +custom callbacks DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Female" } +first_name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3300,11 +3228,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:6) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/callbacks_spec.rb:147) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Male" } +last_name { "Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3314,11 +3242,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:7) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/callbacks_spec.rb:148) + runs a custom before callback when the proper strategy executes DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +first_name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3328,11 +3257,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:10) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/callbacks_spec.rb:147) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -age { 17 } +last_name { "Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3342,11 +3271,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:11) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/callbacks_spec.rb:148) + runs a custom callback without prepending before or after when the proper strategy executes DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Female" } +first_name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3356,11 +3286,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:18) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/callbacks_spec.rb:147) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -age { 25 } +last_name { "Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3370,11 +3300,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:19) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/callbacks_spec.rb:148) + runs a custom after callback when the proper strategy executes + +associations overriding :strategy DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Male" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3384,12 +3317,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:23) - returns the correct value for overridden attributes from traits defining multiple attributes + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/register_strategies_spec.rb:140) + uses the overridden create strategy to create the association + +FactoryBot.lint DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Female" } +name { "assigned" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3399,11 +3334,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:6) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:85) + allows for additional options without explicit factories DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Male" } +name { "assigned" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3413,11 +3349,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:7) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:71) + allows for explicit factories and additional options + allows for selective linting DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "assigned" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3427,11 +3365,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:10) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:36) + does not raise when all factories are valid + raises when a factory is invalid + factory strategy for linting DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -age { 17 } +name { "Barbara" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3441,11 +3382,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:11) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:194) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Female" } +name { "Bob" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3455,11 +3396,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:18) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:197) + uses the requested strategy during trait validation DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -age { 25 } +name { "Barbara" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3469,11 +3411,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:19) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:174) + uses the requested strategy + trait validation + disabled DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Male" } +name { "Yep" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3483,11 +3428,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:23) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:147) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -age { 20 } +name { nil } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3497,25 +3442,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:42) - allows modification of attributes created via traits - -initialize_with with FG attributes that are transient - name - should eq "Handsome Chap from .construct" - -callbacks using Symbol#to_proc - runs the callback correctly - -calling `attributes_for` with a block - passes the hash of attributes - returns the hash of attributes - -defining a child factory before a parent + (called from block (7 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:149) + does not raises if a trait produces an invalid object + enabled DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "Yep" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3525,11 +3458,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/define_child_before_parent_spec.rb:7) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:126) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "awesome" } +name { "Yessir" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3539,21 +3472,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/define_child_before_parent_spec.rb:11) - creates admin factories correctly - -sequences are evaluated in the correct context - allows direct reference of a method in a sequence - invokes the correct method on the instance - invokes a method with no arguments on the instance - builds a sequence calling sprintf correctly - -traits and dynamic attributes that are applied simultaneously - name + (called from block (7 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:128) + does not raise if a trait produces a valid object DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +name { "Yep" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3563,13 +3487,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:310) - should eq "John" - email + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:101) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +name { nil } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3579,13 +3501,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:310) - should eq "John@example.com" - combined + (called from block (7 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/lint_spec.rb:103) + raises if a trait produces an invalid object + +initialize_with non-ORM-backed objects DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +name { "My Awesome Report" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3595,14 +3518,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:310) - should eq "John " - -multiple creates and transient attributes to dynamically build attribute lists + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:66) + allows for overrides DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "Through the Looking Glass" } +name { "My Awesome Report" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3612,11 +3533,20 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:76) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:66) + generates random data + +initialize_with with non-FG attributes + name + should eq "John Doe" + age + should eq 21 + +setting private attributes DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +foo { 123 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3626,11 +3556,22 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:81) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/private_attributes_spec.rb:10) + raises a NoMethodError + +an instance generated by a factory + registers the user factory + +a custom create + uses the custom create block instead of save + +nested implicit traits + defined outside the factory + it should behave like assigning data from traits DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -posts_count { 5 } +gender { "female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3640,12 +3581,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:85) - allows the number of posts to be modified + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:588) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "Through the Looking Glass" } +role { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3655,11 +3595,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:76) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:597) + assigns the correct values + defined inside the factory + it should behave like assigning data from traits DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +gender { "female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3669,11 +3612,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:81) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:619) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -posts_count { 5 } +role { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3683,14 +3626,30 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:85) - generates the correct number of posts + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:628) + assigns the correct values -initialize_with parent and child factories +static attribute deprecation warnings + an implicit attribute via method missing + prints where attribute is declared + using #add_attribute + prints where attribute is declared + +an instance generated by a factory named a camel case string + registers the UserModel factory + +defaulting `id` + allows overriding id + +calling `create` with a block + passes the created instance + returns the created instance + +nested factories with different parents DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great" } +name { "Basic User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3700,11 +3659,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:96) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:72) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Sub" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3714,12 +3673,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:103) - uses the parent's constructor when the child factory doesn't assign it + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:75) + honors :parent over the factory block nesting + +implicit traits containing callbacks DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great" } +value { 0 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3729,11 +3690,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:96) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:651) + only runs the callback once + +initialize_with has access to all attributes for construction DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Sub" } +ignored { "of course!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3743,49 +3707,24 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:103) - allows child factories to override initialize_with - -traits with to_create - gives base traits normal priority - gives additional traits higher priority than to_create from the definition - can apply to_create from traits - gives additional traits higher priority than base traits and factory definition - gives base traits lower priority than overrides - can apply to_create from the definition - -a generated attributes hash - doesn't assign associations - assigns a lazy, dependent attribute - assigns an overridden value - assigns a default value - -defaulting `id` - allows overriding id + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:197) + assigns attributes correctly -calling methods on the model instance - with the referenced attribute being overridden - uses the overridden value during attributes_for - uses the overridden value - without the attribute being overridden - returns the correct value from the instance - returns nil during attributes_for - doesn't instantiate a record with attributes_for - with the attribute being overridden - uses the overridden value - uses the overridden value during attributes_for +syntax methods within dynamic attributes + can access syntax methods from dynamic attributes + can access syntax methods from dynamic attributes + can access methods already existing on the class + allows syntax methods to be used when the block has an arity of 1 -initialize_with with non-FG attributes - name - should eq "John Doe" - age - should eq 21 +a built instance with strategy: :create + should be new record + assigns and saves associations -inline traits overriding existing attributes +modifying inherited factories with traits DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "pending" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3795,11 +3734,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:355) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:6) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "accepted" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3809,11 +3748,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:357) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "declined" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3823,11 +3762,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:358) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:10) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "extended_declined" } +age { 17 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3837,12 +3776,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:362) - prefers inline traits over attributes on factories + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:11) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "pending" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3852,11 +3790,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:355) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "accepted" } +age { 25 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3866,11 +3804,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:357) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:19) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "declined" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3880,11 +3818,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:358) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:23) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "extended_declined" } +age { 20 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3894,12 +3832,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:362) - prefers attributes on factories over attributes from non-inline traits + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:42) + allows modification of attributes created via traits DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "pending" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3909,11 +3847,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:355) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:6) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "accepted" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3923,11 +3861,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:357) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "declined" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3937,11 +3875,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:358) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:10) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "extended_declined" } +age { 17 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3951,12 +3889,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:362) - returns the default status + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:11) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "pending" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3966,11 +3903,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:355) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "accepted" } +age { 25 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3980,11 +3917,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:357) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:19) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "declined" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3994,11 +3931,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:358) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:23) + returns the correct value for overridden attributes from traits DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "extended_declined" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4008,12 +3946,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:362) - prefers traits on a factory over default attributes + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:6) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "pending" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4023,11 +3960,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:355) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "accepted" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4037,11 +3974,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:357) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:10) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "declined" } +age { 17 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4051,11 +3988,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:358) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:11) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "extended_declined" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4065,12 +4002,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:362) - prefers inline trait attributes over default attributes + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "pending" } +age { 25 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4080,11 +4016,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:355) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:19) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "accepted" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4094,11 +4030,15 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:357) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_inherited_spec.rb:23) + returns the correct value for overridden attributes from traits defining multiple attributes + +aliases and overrides + two DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "declined" } +two { "set value" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4108,11 +4048,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:358) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/aliases_spec.rb:9) + should be nil + one DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "extended_declined" } +two { "set value" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4122,12 +4064,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:362) - prefers inline trait attributes over traits on a factory + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/aliases_spec.rb:9) + should eq "override" + +skipping the default create DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "pending" } +email { "john@example.com" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4137,11 +4081,18 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:355) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/skip_create_spec.rb:9) + doesn't execute anything when creating the instance + +a created instance + should not be new record + assigns and saves associations + +making sure the factory is properly compiled the first time we want to instantiate it DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "accepted" } +gender { "female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4151,11 +4102,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:357) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:403) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "declined" } +role { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4165,11 +4116,18 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:358) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:404) + can honor traits on the very first call + +callbacks using Symbol#to_proc + runs the callback correctly + +`attributes_for` for a class whose constructor has required params + [:name] DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -status { "extended_declined" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4179,23 +4137,25 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:362) - prefers overridden attributes over attributes from traits, inline traits, or attributes on factories + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attributes_for_spec.rb:88) + should eq "John Doe" -callbacks using syntax methods without referencing FactoryBot explicitly - works when the callback has two variables - works when the callback has one variable - works when the callback has no variables +defining methods inside FactoryBot + raises with a meaningful message -applying inline traits - applies traits only to the instance generated for that call +traits with initialize_with + gives base traits lower priority than overrides + can apply initialize_with from the definition + can apply initialize_with from traits + gives base traits normal priority + gives additional traits higher priority than base traits and factory definition + gives additional traits higher priority than initialize_with from the definition -aliases and overrides - two +defining a child factory before a parent DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -two { "set value" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4205,13 +4165,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/aliases_spec.rb:9) - should be nil - one + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/define_child_before_parent_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -two { "set value" } +name { "awesome" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4221,14 +4179,15 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/aliases_spec.rb:9) - should eq "override" + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/define_child_before_parent_spec.rb:11) + creates admin factories correctly -making sure the factory is properly compiled the first time we want to instantiate it +declaring attributes on a Factory that are private methods on Object + sleep DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "female" } +system { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4238,11 +4197,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:403) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -role { "admin" } +link { "http://example.com" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4252,16 +4211,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:404) - can honor traits on the very first call - -traits added via strategy - adding traits in build_stubbed - admin + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:8) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +sleep { 15 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4271,11 +4225,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:9) + should eq -5 + link DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +system { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4285,13 +4241,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) - should equal true - name + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +link { "http://example.com" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4301,11 +4255,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:8) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +sleep { 15 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4315,14 +4269,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) - should eq "Jack" - adding traits in build - name + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:9) + should eq "http://example.com" + system DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +system { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4332,11 +4285,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +link { "http://example.com" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4346,13 +4299,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) - should eq "Joe" - admin + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:8) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +sleep { 15 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4362,11 +4313,25 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_existing_on_object_spec.rb:9) + should eq false + +transient sequences + increments sequences correctly + +association assignment from nested attributes + assigns the correct amount of comments when overridden + assigns the correct amount of comments + +initialize_with doesn't duplicate assignment on attributes accessed from initialize_with + instantiates the correct object + +transient attributes + returning attributes for a factory DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4376,13 +4341,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) - should equal true - adding traits in build_list + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +upcased { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4392,11 +4355,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) + should not have key :upcased DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4406,13 +4370,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) - builds all the records - length + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +upcased { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4422,11 +4384,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) + should not have key :rockstar DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4436,14 +4399,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) - should eq 2 - adding traits in attributes_for - [:admin] + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +upcased { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4453,11 +4413,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) + should have key :email DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4467,13 +4428,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) - should equal true - [:name] + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +upcased { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4483,11 +4442,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) + should not have key :four DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4497,13 +4457,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) - should eq "John" - adding traits in create + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +upcased { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4513,11 +4471,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) + should have key :name + with a transient variable assigned DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4527,13 +4487,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) - doesn't modify the user factory - admin + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +upcased { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4543,11 +4501,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) + generates the correct attributes on a groupie DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4557,13 +4516,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) - should equal true - name + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +upcased { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4573,11 +4530,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) + generates the correct attributes on an upcased rockstar DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4587,13 +4545,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) - should eq "JOE" - adding traits in create_list + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +upcased { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4603,11 +4559,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) + generates the correct attributes on a rockstar DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4617,13 +4574,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) - creates all the records - length + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +upcased { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4633,11 +4588,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) + generates the correct attributes on a rockstar with a name + without transient variables assigned DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4647,14 +4604,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) - should eq 2 - -modifying factories + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:11) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +upcased { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4664,11 +4618,16 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/transient_attributes_spec.rb:12) + uses the default value of the attribute + using aliased 'ignore' method name + uses the default value of the attribute + +using ActiveSupport::Instrumentation to track factory interaction DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { false } +email { "john@example.com" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4678,12 +4637,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:168) - allows for overriding child classes + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/activesupport_instrumentation_spec.rb:21) + builds the correct payload DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +email { "john@example.com" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4693,12 +4652,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) - raises an exception if the factory was not defined before + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/activesupport_instrumentation_spec.rb:21) + tracks proper time of creating the record + +register custom strategies DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "Great" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4708,11 +4669,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/register_strategies_spec.rb:25) + allows overriding default strategies DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { false } +name { "Great" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4722,14 +4684,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:159) - doesn't overwrite already defined child's attributes - adding callbacks - login + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/register_strategies_spec.rb:25) + allows adding additional strategies DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "Great" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4739,11 +4699,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/register_strategies_spec.rb:25) + allows using the *_list method to build a list using a custom strategy DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +name { "Great" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4753,13 +4714,16 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:58) - should be nil - name + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/register_strategies_spec.rb:25) + allows using the *_pair method to build a list using a custom strategy + +an instance generated by a factory that inherits from another factory + the child class redefining parent's dynamic attribute with static attribute + email DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4769,11 +4733,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4783,12 +4747,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:58) - should eq "great user" - redefining attributes - creating admin - without overrides - admin + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -4802,11 +4761,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4816,13 +4775,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) - should equal true - email + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) + should eq "" + the parent class DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4832,11 +4791,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4846,9 +4805,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) - should eq "Great User-modified@example.com" - name + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -4862,11 +4819,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4876,14 +4833,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) - should eq "Great User" - overriding dynamic attributes - admin + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) + should not be admin + email DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4893,11 +4849,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4907,9 +4863,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) - should equal true - name + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -4923,11 +4877,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4937,13 +4891,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) - should eq "Great User" - email + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) + should eq "john@example.com" + the child class redefining parent's dynamic method DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4953,11 +4907,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4967,10 +4921,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) - should eq "perfect@example.com" - overriding static attributes - name + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -4984,11 +4935,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -4998,13 +4949,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) - should eq "wonderful" - email + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) + should not be admin + login DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5014,11 +4965,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5028,9 +4979,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) - should eq "wonderful-modified@example.com" - admin + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -5044,11 +4993,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5058,15 +5007,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) - should equal true - creating user - overriding static attributes - email + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) + should eq "John-guest@example.com" + email DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5076,11 +5023,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5090,9 +5037,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) - should eq "wonderful-modified@example.com" - name + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -5106,11 +5051,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5120,14 +5065,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) - should eq "wonderful" - overriding dynamic attributes - name + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) + should eql "John-guest@example.com" + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5137,11 +5081,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5151,9 +5095,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) - should eq "Great User" - email + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -5167,11 +5109,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5181,14 +5123,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) - should eq "perfect@example.com" - without overrides - email + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) + should eq "John" + the child class redefining parent's static method used by a dynamic method DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5198,11 +5139,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5212,9 +5153,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) - should eq "Great User-modified@example.com" - name + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -5228,11 +5167,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5242,13 +5181,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) - should eq "Great User" - simple modification + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) + should be admin DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5258,11 +5196,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5272,8 +5210,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:28) - doesn't allow the factory to be subsequently defined + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -5287,11 +5224,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5301,11 +5238,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:28) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) + should be a kind of User(id: integer, name: string, admin: boolean, email: string, upper_email: string, login: string) + upper_email DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Overridden again!" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5315,13 +5254,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:46) - does allow the factory to be subsequently modified - login + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5331,11 +5268,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5345,13 +5282,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:28) - should eq "GREAT USER" - name + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5361,11 +5296,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) + should eq "ADMIN@EXAMPLE.COM" + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great User" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5375,14 +5312,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:28) - should eq "Great User" - reusing traits - name + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5392,11 +5326,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Johnny Rockstar!!!" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5406,13 +5340,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:77) - should eq "Johnny Rockstar!!!" - email + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5422,11 +5354,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) + should eq "admin" + email DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Johnny Rockstar!!!" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5436,13 +5370,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:77) - should eq "Johnny Rockstar!!!@example.com" - login + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5452,11 +5384,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Johnny Rockstar!!!" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5466,14 +5398,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:77) - should eq "JOHNNY ROCKSTAR!!!" - -using ActiveSupport::Instrumentation to track factory interaction + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -email { "john@example.com" } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5483,12 +5412,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/activesupport_instrumentation_spec.rb:21) - builds the correct payload + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) + should eq "admin@example.com" + the child class redefining parent's static attribute with dynamic attribute + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -email { "john@example.com" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5498,23 +5429,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/activesupport_instrumentation_spec.rb:21) - tracks proper time of creating the record - -traits with initialize_with - can apply initialize_with from the definition - gives base traits normal priority - gives base traits lower priority than overrides - can apply initialize_with from traits - gives additional traits higher priority than initialize_with from the definition - gives additional traits higher priority than base traits and factory definition - -associations without overriding :strategy - when the :use_parent_strategy config option has not been enabled + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5524,13 +5443,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/register_strategies_spec.rb:96) - uses the overridden strategy on the association - when the :use_parent_strategy config option has been enabled + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5540,16 +5457,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/register_strategies_spec.rb:96) - uses the parent strategy on the association - -nested implicit traits - defined inside the factory - it should behave like assigning data from traits + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "female" } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5559,11 +5471,51 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:619) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) + should eq "Bill" + +calling `attributes_for` with a block + returns the hash of attributes + passes the hash of attributes + +global callbacks + triggers after build callbacks for all factories + +a generated stub instance + isn't changed + allows decrement + allows toggle + generates unique ids + assigns an overridden attribute + assigns associations that aren't new records + allows increment + disables increment! + disables decrement! + assigns a default attribute + disables reload + disables connection + disables update_attribute + disables destroy + assigns associations + has an id + disables toggle! + disables save + isn't a new record + +a stubbed instance + assigns associations and acts as if it is saved + acts as if it came from the database + +an instance generated by a factory with a custom class name + should be a kind of User(id: integer, admin: boolean) + should be admin + +an instance generated by a factory with multiple traits + the other child class with one trait DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -role { "admin" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5573,14 +5525,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:628) - assigns the correct values - defined outside the factory - it should behave like assigning data from traits + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:17) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "female" } +great { "GREAT!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5590,11 +5539,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:588) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:20) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -role { "admin" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5604,14 +5553,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:597) - assigns the correct values - -setting private attributes + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:24) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -foo { 123 } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5621,14 +5567,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/private_attributes_spec.rb:10) - raises a NoMethodError - -initialize_with non-ORM-backed objects + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:28) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "My Awesome Report" } +name { "Joe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5638,12 +5581,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:66) - generates random data + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:32) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "My Awesome Report" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5653,14 +5595,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:66) - allows for overrides - -initialize_with implicit constructor + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:33) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great" } +name { "Jane" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5670,14 +5609,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:136) - instantiates the correct object - -global to_create + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:37) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5687,11 +5623,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:14) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:38) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great title" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5701,12 +5637,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:24) - handles base to_create + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:57) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +name { "Judy" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5716,11 +5651,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:14) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:58) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great title" } +name { "Bill" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5730,12 +5665,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:24) - handles child to_create with trait + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) + should not be admin + gender DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5745,11 +5681,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:14) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:17) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great title" } +great { "GREAT!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5759,12 +5695,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:24) - handles inline trait override + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:20) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5774,11 +5709,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:14) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:24) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great title" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5788,12 +5723,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:24) - uses to_create globally across FactoryBot.define + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:28) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +name { "Joe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5803,11 +5737,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:14) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:32) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great title" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5817,25 +5751,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:24) - handles child to_create - -sequences - generates several values in the correct format - generates aliases for the sequence that reference the same block and retains value - generates aliases for the sequence that reference the same block - generates few values of the sequence - generates sequential numbers if no block is given - -a custom create - uses the custom create block instead of save - -an instance generated by a factory that inherits from another factory - the child class redefining parent's static method used by a dynamic method + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:33) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +name { "Jane" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5845,11 +5765,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:37) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "admin" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5859,7 +5779,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:38) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -5873,11 +5793,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:57) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -email { "" } +name { "Judy" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5887,12 +5807,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) - should be a kind of User(id: integer, name: string, admin: boolean, email: string, upper_email: string, login: string) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:58) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +name { "Bill" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5902,11 +5821,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) + should eq "Female" + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "admin" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5916,11 +5837,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:17) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +great { "GREAT!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5930,11 +5851,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:20) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -email { "" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5944,13 +5865,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) - should be admin - upper_email + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:24) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5960,11 +5879,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:28) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "admin" } +name { "Joe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5974,11 +5893,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:32) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -5988,11 +5907,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:33) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -email { "" } +name { "Jane" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6002,13 +5921,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) - should eq "ADMIN@EXAMPLE.COM" - name + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:37) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6018,11 +5935,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:38) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "admin" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6032,11 +5949,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:57) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "Judy" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6046,11 +5963,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:58) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -email { "" } +name { "Bill" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6060,9 +5977,9 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) - should eq "admin" - email + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) + should eq "Jane" + the child with multiple traits DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -6076,11 +5993,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:17) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "admin" } +great { "GREAT!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6090,7 +6007,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:20) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -6104,11 +6021,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:24) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -email { "" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6118,13 +6035,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) - should eq "admin@example.com" - the parent class + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:28) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +name { "Joe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6134,11 +6049,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:32) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "admin" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6148,11 +6063,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:33) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "Jane" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6162,11 +6077,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:37) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -email { "" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6176,13 +6091,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) - should not be admin - email + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:38) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6192,11 +6105,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:57) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "admin" } +name { "Judy" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6206,11 +6119,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:58) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "Bill" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6220,11 +6133,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) + should be admin + gender DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -email { "" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6234,14 +6149,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) - should eq "john@example.com" - the child class redefining parent's static attribute with dynamic attribute - name + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:17) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +great { "GREAT!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6251,11 +6163,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:20) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "admin" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6265,7 +6177,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:24) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -6279,11 +6191,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:28) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -email { "" } +name { "Joe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6293,13 +6205,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) - should eq "Bill" - the child class redefining parent's dynamic method + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:32) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6309,11 +6219,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:33) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "admin" } +name { "Jane" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6323,11 +6233,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:37) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6337,11 +6247,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:38) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -email { "" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6351,13 +6261,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) - should not be admin - email + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:57) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +name { "Judy" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6367,11 +6275,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:58) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "admin" } +name { "Bill" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6381,11 +6289,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) + should eq "Female" + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6395,11 +6305,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:17) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -email { "" } +great { "GREAT!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6409,13 +6319,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) - should eql "John-guest@example.com" - login + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:20) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6425,11 +6333,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:24) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "admin" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6439,11 +6347,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:28) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "Joe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6453,11 +6361,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:32) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -email { "" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6467,13 +6375,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) - should eq "John-guest@example.com" - name + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:33) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +name { "Jane" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6483,11 +6389,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:37) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "admin" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6497,7 +6403,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:38) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -6511,11 +6417,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:57) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -email { "" } +name { "Judy" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6525,14 +6431,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) - should eq "John" - the child class redefining parent's dynamic attribute with static attribute - email + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:58) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +name { "Bill" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6542,11 +6445,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:7) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) + should eq "Jane" + child factory created where trait attributes are inherited + gender DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "admin" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6556,11 +6462,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:12) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:17) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +great { "GREAT!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6570,11 +6476,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:13) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:20) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -email { "" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6584,14 +6490,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) - should eq "" - -global skip_create + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:24) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6601,11 +6504,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:80) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:28) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great title" } +name { "Joe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6615,12 +6518,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:90) - does not persist child records + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:32) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6630,11 +6532,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:80) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:33) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great title" } +name { "Jane" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6644,12 +6546,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:90) - honors inline trait to_create + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:37) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6659,11 +6560,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:80) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:38) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great title" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6673,12 +6574,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:90) - honors overridden to_create + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:57) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +name { "Judy" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6688,11 +6588,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:80) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:58) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great title" } +name { "Bill" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -6702,12 +6602,9 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/global_to_create_spec.rb:90) - does not persist any record - -an instance generated by a factory with multiple traits - factory created with alternate syntax where trait name and attribute are the same and attribute is overridden - great + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) + should eq "Male" + date_of_birth DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -6862,8 +6759,9 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "SORT OF!!!" - the parent class + should eq Sat, 01 Jan 2000 + the child with multiple traits who override the same attribute + when the female assigns name after male DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -7018,8 +6916,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should not be admin - gender + should be admin + gender DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -7174,8 +7072,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should be nil - name + should eq "Female" + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -7330,9 +7228,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "John" - child factory using grandparents' trait - great + should eq "Jane" + when the male assigns name after female DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -7487,9 +7384,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "GREAT!!!" - child factory created where trait attributes are inherited - gender + should be admin + gender DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -7644,8 +7540,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "Male" - date_of_birth + should eq "Male" + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -7800,8 +7696,9 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq Sat, 01 Jan 2000 - factory outside of scope + should eq "Joe" + factory created with alternate syntax where trait name and attribute are the same and attribute is overridden + great DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -7956,8 +7853,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should raise ArgumentError with "Trait not registered: admin_trait" - the child with multiple traits + should eq "SORT OF!!!" + child class with scoped trait and inherited trait DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -8424,9 +8321,9 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "Jane" - factory using global trait - name + should eq "Judy" + factory created with alternate syntax where trait name and attribute are the same + great DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -8581,8 +8478,9 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "Bill" - email + should eq "GREAT!!!" + factory created with alternate syntax for specifying trait + gender DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -8737,8 +8635,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "Bill@example.com" - child class with scoped trait and inherited trait + should eq "Male" + factory outside of scope DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -8893,8 +8791,9 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should be admin - name + should raise ArgumentError with "Trait not registered: admin_trait" + factory using global trait + email DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -9049,8 +8948,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "Judy" - gender + should eq "Bill@example.com" + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -9205,9 +9104,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "Female" - the child with multiple traits who override the same attribute - when the male assigns name after female + should eq "Bill" + the child with multiple traits and overridden attributes DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -9362,8 +9260,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should be admin - gender + should be admin + gender DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -9518,8 +9416,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "Male" - name + should be nil + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -9674,8 +9572,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "Joe" - when the female assigns name after male + should eq "Jill" + the parent class DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -9830,8 +9728,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should be admin - name + should not be admin + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -9986,8 +9884,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "Jane" - gender + should eq "John" + gender DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -10142,8 +10040,9 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "Female" - the other child class with one trait + should be nil + child factory using grandparents' trait + great DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -10298,8 +10197,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should not be admin - gender + should eq "GREAT!!!" + the child class with one trait DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -10454,8 +10353,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "Female" - name + should be admin + gender DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -10610,9 +10509,8 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "Jane" - factory created with alternate syntax where trait name and attribute are the same - great + should be nil + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -10767,12 +10665,18 @@ --auto-correct (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "GREAT!!!" - the child class with one trait + should eq "John" + +callbacks using syntax methods without referencing FactoryBot explicitly + works when the callback has no variables + works when the callback has one variable + works when the callback has two variables + +traits used in associations DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +admin { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10782,11 +10686,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:17) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:687) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -great { "GREAT!!!" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10796,11 +10700,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:20) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:690) + allows inline traits with a specific factory for an association DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +admin { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10810,7 +10715,7 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:24) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:687) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -10824,11 +10729,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:28) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:690) + allows inline traits with the default association DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Joe" } +admin { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10838,11 +10744,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:32) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:687) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Male" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10852,11 +10758,15 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:33) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:690) + allows assigning traits for the factory of an association + +create multiple instances + with default attributes DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Jane" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10866,11 +10776,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:37) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:7) + overrides the default values + without default attributes DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Female" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10880,11 +10792,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:38) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:7) + uses the default factory values DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10894,11 +10807,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:57) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:7) + creates all the posts + length DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Judy" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10908,11 +10823,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:58) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:7) + should eq 20 + with a block DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Bill" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10922,13 +10839,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should be admin - gender + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:7) + uses the new values + without the count DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10938,11 +10855,50 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:17) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:7) + raise ArgumentError with the proper error message + +global initialize_with + handles child initialize_with with trait + handles child initialize_with + uses initialize_with globally across FactoryBot.define + handles inline trait override + handles base initialize_with + +FactoryBot.rewind_sequences + resets all sequences back to their starting values + +a built instance + should be new record + assigns but does not save associations when using parent strategy + when the :use_parent_strategy config option has not been set + assigns and saves associations + when the :use_parent_strategy config option has been enabled + assigns but does not save associations + +sequences + generates sequential numbers if no block is given + generates few values of the sequence + generates aliases for the sequence that reference the same block and retains value + generates aliases for the sequence that reference the same block + generates several values in the correct format + +calling `build_stubbed` with a block + returns the stub instance + passes the stub instance + +defaulting `created_at` + defaults created_at for objects with created_at to the correct time with zone + doesn't allow setting created_at on an object that doesn't define it + doesn't add created_at to objects who don't have the method + allows overriding created_at for objects with created_at + defaults created_at for objects with created_at + +modifying factories DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -great { "GREAT!!!" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10952,7 +10908,8 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:20) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) + raises an exception if the factory was not defined before DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -10966,11 +10923,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:24) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +admin { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10980,11 +10937,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:28) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:159) + doesn't overwrite already defined child's attributes DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Joe" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10994,11 +10952,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:32) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Male" } +admin { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11008,11 +10966,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:33) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:168) + allows for overriding child classes + simple modification DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Jane" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11022,11 +10982,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:37) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Female" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11036,7 +10996,8 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:38) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:28) + doesn't allow the factory to be subsequently defined DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -11050,11 +11011,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:57) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Judy" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11064,11 +11025,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:58) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:28) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Bill" } +name { "Overridden again!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11078,13 +11039,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should be nil - name + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:46) + does allow the factory to be subsequently modified + login DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11094,11 +11055,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:17) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -great { "GREAT!!!" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11108,7 +11069,9 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:20) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:28) + should eq "GREAT USER" + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -11122,11 +11085,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:24) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11136,11 +11099,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:28) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:28) + should eq "Great User" + adding callbacks + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Joe" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11150,11 +11116,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:32) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Male" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11164,11 +11130,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:33) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:58) + should eq "great user" + login DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Jane" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11178,11 +11146,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:37) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Female" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11192,7 +11160,10 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:38) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:58) + should be nil + reusing traits + email DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -11206,11 +11177,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:57) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Judy" } +name { "Johnny Rockstar!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11220,11 +11191,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:58) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:77) + should eq "Johnny Rockstar!!!@example.com" + login DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Bill" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11234,14 +11207,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "John" - factory created with alternate syntax for specifying trait - gender + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +name { "Johnny Rockstar!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11251,11 +11221,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:17) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:77) + should eq "JOHNNY ROCKSTAR!!!" + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -great { "GREAT!!!" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11265,11 +11237,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:20) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "Johnny Rockstar!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11279,7 +11251,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:24) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:77) + should eq "Johnny Rockstar!!!" + redefining attributes + creating admin + without overrides + email DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -11293,11 +11270,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:28) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Joe" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11307,11 +11284,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:32) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) + should eq "Great User-modified@example.com" + admin DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Male" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11321,11 +11300,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:33) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Jane" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11335,11 +11314,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:37) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) + should equal true + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Female" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11349,11 +11330,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:38) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11363,11 +11344,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:57) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) + should eq "Great User" + overriding static attributes + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Judy" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11377,11 +11361,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:58) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Bill" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11391,13 +11375,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "Male" - the child with multiple traits and overridden attributes + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) + should eq "wonderful" + admin DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11407,11 +11391,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:17) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -great { "GREAT!!!" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11421,7 +11405,9 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:20) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) + should equal true + email DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -11435,11 +11421,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:24) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11449,11 +11435,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:28) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) + should eq "wonderful-modified@example.com" + overriding dynamic attributes + admin DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Joe" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11463,11 +11452,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:32) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Male" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11477,11 +11466,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:33) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) + should equal true + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Jane" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11491,11 +11482,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:37) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Female" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11505,7 +11496,9 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:38) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) + should eq "Great User" + email DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -11519,11 +11512,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:57) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Judy" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11533,11 +11526,15 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:58) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) + should eq "perfect@example.com" + creating user + without overrides + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Bill" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11547,13 +11544,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should be admin - name + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11563,11 +11558,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:17) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) + should eq "Great User" + email DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -great { "GREAT!!!" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11577,11 +11574,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:20) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11591,7 +11588,10 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:24) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) + should eq "Great User-modified@example.com" + overriding dynamic attributes + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -11605,11 +11605,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:28) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Joe" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11619,11 +11619,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:32) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) + should eq "Great User" + email DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Male" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11633,11 +11635,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:33) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Jane" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11647,11 +11649,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:37) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) + should eq "perfect@example.com" + overriding static attributes + name DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Female" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11661,11 +11666,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:38) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11675,11 +11680,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:57) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) + should eq "wonderful" + email DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Judy" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11689,11 +11696,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:58) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Bill" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11703,13 +11710,31 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should eq "Jill" - gender + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) + should eq "wonderful-modified@example.com" + +a generated attributes hash + assigns a lazy, dependent attribute + doesn't assign associations + assigns a default value + assigns an overridden value + +callbacks + runs both the after(:build) and after(:create) callbacks when creating + runs the after(:stub) callback when stubbing + runs the after(:build) callback when building + runs child callback after parent callback + runs both the after(:stub) callback on the factory and the inherited after(:stub) callback + +calling `build` with a block + returns the built instance + passes the built instance + +initialize_with parent and child factories DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +name { "Great" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11719,11 +11744,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:17) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:96) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -great { "GREAT!!!" } +name { "Sub" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11733,11 +11758,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:20) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:103) + uses the parent's constructor when the child factory doesn't assign it DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "Great" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11747,11 +11773,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:24) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:96) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +name { "Sub" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11761,11 +11787,23 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:28) + (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:103) + allows child factories to override initialize_with + +binding a callback to multiple callbacks + does not bind the callback to building + binds the callback to creation + binds the callback to stubbing + +assigning values from a transient attribute + does not ignore an _id attribute that is an alias for a transient attribute + +build multiple instances + with a block DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Joe" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11775,11 +11813,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:32) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/build_list_spec.rb:7) + correctly uses the set value + with default attributes DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Male" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11789,11 +11829,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:33) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/build_list_spec.rb:7) + overrides the default values + without default attributes DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Jane" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11803,11 +11845,12 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:37) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/build_list_spec.rb:7) + uses the default factory values DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -gender { "Female" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11817,11 +11860,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:38) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/build_list_spec.rb:7) + builds (but doesn't save) all the posts + length DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -admin { true } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11831,11 +11876,23 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:57) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/build_list_spec.rb:7) + should eq 20 + +traits with to_create + gives additional traits higher priority than base traits and factory definition + gives base traits normal priority + gives additional traits higher priority than to_create from the definition + can apply to_create from traits + can apply to_create from the definition + gives base traits lower priority than overrides + +a generated attributes hash where order matters + factory without a parent DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Judy" } +static { 1 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11845,11 +11902,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:58) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attributes_ordered_spec.rb:17) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Bill" } +static { 1 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11859,17 +11916,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) - should be nil - -an instance generated by a factory - registers the user factory - -associations overriding :strategy + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attributes_ordered_spec.rb:25) + assigns attributes in the order they're defined with preference to static attributes without a parent class + factory with a parent DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John Doe" } +static { 1 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11879,14 +11932,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/register_strategies_spec.rb:140) - uses the overridden create strategy to create the association - -attributes defined using Symbol#to_proc + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attributes_ordered_spec.rb:17) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -password { "foo" } +static { 1 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11896,12 +11946,15 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/definition_spec.rb:26) - assigns overridden value correctly + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attributes_ordered_spec.rb:25) + assigns attributes in the order they're defined with preference to static attributes + +associations without overriding :strategy + when the :use_parent_strategy config option has been enabled DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -password { "foo" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11911,12 +11964,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/definition_spec.rb:26) - assigns values correctly + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/register_strategies_spec.rb:96) + uses the parent strategy on the association + when the :use_parent_strategy config option has not been enabled DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -password { "foo" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11926,15 +11980,16 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/definition_spec.rb:26) - assigns value with override correctly + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/register_strategies_spec.rb:96) + uses the overridden strategy on the association -build multiple instances - with default attributes +attribute overrides + with no user posting + secure DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "Through the Looking Glass" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11944,13 +11999,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/build_list_spec.rb:7) - overrides the default values - without default attributes + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/overrides_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "Through the Looking Glass" } +title { "default title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11960,12 +12013,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/build_list_spec.rb:7) - uses the default factory values + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/overrides_spec.rb:24) + should be nil + with an admin posting + secure DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "Through the Looking Glass" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11975,13 +12030,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/build_list_spec.rb:7) - builds (but doesn't save) all the posts - length + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/overrides_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "Through the Looking Glass" } +title { "default title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11991,13 +12044,14 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/build_list_spec.rb:7) - should eq 20 - with a block + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/overrides_spec.rb:24) + should eq false + with a non-admin posting + secure DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -title { "Through the Looking Glass" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -12007,32 +12061,11 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/build_list_spec.rb:7) - correctly uses the set value - -global callbacks - triggers after build callbacks for all factories - -an instance generated by a factory with a custom class name - should be admin - should be a kind of User(id: integer, admin: boolean) - -a created instance - assigns and saves associations - should not be new record - -assigning values from a transient attribute - does not ignore an _id attribute that is an alias for a transient attribute - -a stubbed instance - assigns associations and acts as if it is saved - acts as if it came from the database - -traits with callbacks + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/overrides_spec.rb:18) DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +title { "default title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -12042,31 +12075,37 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:185) - executes callbacks in the order assigned - when the factory has an implicit trait - name -DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic -attributes instead by wrapping the attribute value in a block: + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/overrides_spec.rb:24) + should be nil -name { "John" } +sequences are evaluated in the correct context + invokes a method with no arguments on the instance + allows direct reference of a method in a sequence + builds a sequence calling sprintf correctly + invokes the correct method on the instance -To automatically update from static attributes to dynamic ones, -install rubocop-rspec and run: +defaulting `updated_at` + doesn't add updated_at to objects who don't have the method + allows overriding updated_at for objects with updated_at + doesn't allow setting updated_at on an object that doesn't define it + defaults updated_at for objects with updated_at -rubocop \ - --require rubocop-rspec \ - --only FactoryBot/AttributeDefinedStatically \ - --auto-correct +assigning overrides that are also private methods on object + more_format + should eq "format: Great" + some_funky_method + should eq "foobar!" + format + should eq "Great" + y + should eq 12345 - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:185) - should eq "JOHN" - when the factory has a trait passed via arguments - name +attribute aliases + assigning an association by passing factory DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "John" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -12076,14 +12115,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:185) - should eq "JOHN" - -including FactoryBot::Syntax::Methods when custom strategies have been declared + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_aliases_spec.rb:12) + assigns attributes correctly + assigning an association by foreign key DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: -name { "Great" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -12093,17 +12131,13 @@ --only FactoryBot/AttributeDefinedStatically \ --auto-correct - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/register_strategies_spec.rb:68) - allows adding additional strategies - -accessing methods from the instance within a dynamic attribute that is also a private method on object - more_format - should eq "format: This is an awesome format" + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/attribute_aliases_spec.rb:12) + doesn't assign both an association and its foreign key -Finished in 5.38 seconds (files took 0.88451 seconds to load) +Finished in 6.71 seconds (files took 1.02 seconds to load) 325 examples, 0 failures -Randomized with seed 24523 +Randomized with seed 63398 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -12135,12 +12169,14 @@ dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration +I: user script /srv/workspace/pbuilder/43743/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/43743/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/21036 and its subdirectories -I: Current time: Sun May 8 11:23:06 -12 2022 -I: pbuilder-time-stamp: 1652052186 +I: removing directory /srv/workspace/pbuilder/43743 and its subdirectories +I: Current time: Tue Apr 6 07:01:00 +14 2021 +I: pbuilder-time-stamp: 1617642060