Diff of the two buildlogs: -- --- b1/build.log 2020-07-07 18:24:09.801685089 +0000 +++ b2/build.log 2020-07-07 18:38:21.152740882 +0000 @@ -1,6 +1,9 @@ -I: pbuilder: network access will be disabled during build -I: Current time: Mon Aug 9 12:46:31 -12 2021 -I: pbuilder-time-stamp: 1628556391 +W: cgroups are not available on the host, not using them. +unshare: unshare failed: Cannot allocate memory +W: pbuilder: unshare CLONE_NEWNET not available +I: pbuilder: network access is available during build! +I: Current time: Wed Jul 8 08:24:12 +14 2020 +I: pbuilder-time-stamp: 1594146252 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration @@ -18,7 +21,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 @@ -31,138 +34,171 @@ 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/41973/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/6295/tmp/hooks/D01_modify_environment starting +debug: Running on profitbricks-build2-i386. +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/6295/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/6295/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='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=18' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='i386' + 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]="i686-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=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=10' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='e8f61ae4197a46dd963d3f22bb2fe9cf' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - 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='41973' - PS1='# ' - PS2='> ' + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-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=6295 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.UdDUwBq9pB/pbuilderrc_9e69 --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.UdDUwBq9pB/b1 --logfile b1/build.log ruby-factory-bot_4.11.1-1.dsc' - SUDO_GID='112' - SUDO_UID='107' - 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.UdDUwBq9pB/pbuilderrc_qTJT --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.UdDUwBq9pB/b2 --logfile b2/build.log ruby-factory-bot_4.11.1-1.dsc' + SUDO_GID=112 + SUDO_UID=107 + 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 profitbricks-build6-i386 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux + Linux i-capture-the-hostname 4.19.0-9-686-pae #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) i686 GNU/Linux I: ls -l /bin total 5476 - -rwxr-xr-x 1 root root 1302248 Apr 17 2019 bash - -rwxr-xr-x 3 root root 38280 Jul 10 2019 bunzip2 - -rwxr-xr-x 3 root root 38280 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 38280 Jul 10 2019 bzip2 - -rwxr-xr-x 1 root root 17768 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 38692 Feb 28 2019 cat - -rwxr-xr-x 1 root root 75588 Feb 28 2019 chgrp - -rwxr-xr-x 1 root root 63268 Feb 28 2019 chmod - -rwxr-xr-x 1 root root 75588 Feb 28 2019 chown - -rwxr-xr-x 1 root root 153732 Feb 28 2019 cp - -rwxr-xr-x 1 root root 132820 Jan 17 2019 dash - -rwxr-xr-x 1 root root 120676 Feb 28 2019 date - -rwxr-xr-x 1 root root 92040 Feb 28 2019 dd - -rwxr-xr-x 1 root root 100620 Feb 28 2019 df - -rwxr-xr-x 1 root root 149736 Feb 28 2019 dir - -rwxr-xr-x 1 root root 79412 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 34532 Feb 28 2019 echo - -rwxr-xr-x 1 root root 28 Jan 7 2019 egrep - -rwxr-xr-x 1 root root 34532 Feb 28 2019 false - -rwxr-xr-x 1 root root 28 Jan 7 2019 fgrep - -rwxr-xr-x 1 root root 67700 Jan 9 2019 findmnt - -rwsr-xr-x 1 root root 30112 Apr 22 2020 fusermount - -rwxr-xr-x 1 root root 206392 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 100952 Jan 5 2019 gzip - -rwxr-xr-x 1 root root 21916 Sep 26 2018 hostname - -rwxr-xr-x 1 root root 79752 Feb 28 2019 ln - -rwxr-xr-x 1 root root 55400 Jul 26 2018 login - -rwxr-xr-x 1 root root 149736 Feb 28 2019 ls - -rwxr-xr-x 1 root root 112032 Jan 9 2019 lsblk - -rwxr-xr-x 1 root root 87972 Feb 28 2019 mkdir - -rwxr-xr-x 1 root root 79748 Feb 28 2019 mknod - -rwxr-xr-x 1 root root 46916 Feb 28 2019 mktemp - -rwxr-xr-x 1 root root 42348 Jan 9 2019 more - -rwsr-xr-x 1 root root 50592 Jan 9 2019 mount - -rwxr-xr-x 1 root root 13724 Jan 9 2019 mountpoint - -rwxr-xr-x 1 root root 157832 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 38660 Feb 28 2019 pwd - lrwxrwxrwx 1 root root 4 Apr 17 2019 rbash -> bash - -rwxr-xr-x 1 root root 46852 Feb 28 2019 readlink - -rwxr-xr-x 1 root root 75588 Feb 28 2019 rm - -rwxr-xr-x 1 root root 42756 Feb 28 2019 rmdir - -rwxr-xr-x 1 root root 22276 Jan 21 2019 run-parts - -rwxr-xr-x 1 root root 125036 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Aug 8 02:46 sh -> dash - -rwxr-xr-x 1 root root 34532 Feb 28 2019 sleep - -rwxr-xr-x 1 root root 79652 Feb 28 2019 stty - -rwsr-xr-x 1 root root 71072 Jan 9 2019 su - -rwxr-xr-x 1 root root 34564 Feb 28 2019 sync - -rwxr-xr-x 1 root root 504024 Apr 23 2019 tar - -rwxr-xr-x 1 root root 13860 Jan 21 2019 tempfile - -rwxr-xr-x 1 root root 104292 Feb 28 2019 touch - -rwxr-xr-x 1 root root 34532 Feb 28 2019 true - -rwxr-xr-x 1 root root 17768 Apr 22 2020 ulockmgr_server - -rwsr-xr-x 1 root root 30108 Jan 9 2019 umount - -rwxr-xr-x 1 root root 34532 Feb 28 2019 uname - -rwxr-xr-x 2 root root 2345 Jan 5 2019 uncompress - -rwxr-xr-x 1 root root 149736 Feb 28 2019 vdir - -rwxr-xr-x 1 root root 34208 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/41973/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1302248 Apr 18 2019 bash + -rwxr-xr-x 3 root root 38280 Jul 11 2019 bunzip2 + -rwxr-xr-x 3 root root 38280 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 38280 Jul 11 2019 bzip2 + -rwxr-xr-x 1 root root 17768 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 38692 Mar 1 2019 cat + -rwxr-xr-x 1 root root 75588 Mar 1 2019 chgrp + -rwxr-xr-x 1 root root 63268 Mar 1 2019 chmod + -rwxr-xr-x 1 root root 75588 Mar 1 2019 chown + -rwxr-xr-x 1 root root 153732 Mar 1 2019 cp + -rwxr-xr-x 1 root root 132820 Jan 18 2019 dash + -rwxr-xr-x 1 root root 120676 Mar 1 2019 date + -rwxr-xr-x 1 root root 92040 Mar 1 2019 dd + -rwxr-xr-x 1 root root 100620 Mar 1 2019 df + -rwxr-xr-x 1 root root 149736 Mar 1 2019 dir + -rwxr-xr-x 1 root root 79412 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 34532 Mar 1 2019 echo + -rwxr-xr-x 1 root root 28 Jan 8 2019 egrep + -rwxr-xr-x 1 root root 34532 Mar 1 2019 false + -rwxr-xr-x 1 root root 28 Jan 8 2019 fgrep + -rwxr-xr-x 1 root root 67700 Jan 10 2019 findmnt + -rwsr-xr-x 1 root root 30112 Apr 23 09:38 fusermount + -rwxr-xr-x 1 root root 206392 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 100952 Jan 6 2019 gzip + -rwxr-xr-x 1 root root 21916 Sep 27 2018 hostname + -rwxr-xr-x 1 root root 79752 Mar 1 2019 ln + -rwxr-xr-x 1 root root 55400 Jul 27 2018 login + -rwxr-xr-x 1 root root 149736 Mar 1 2019 ls + -rwxr-xr-x 1 root root 112032 Jan 10 2019 lsblk + -rwxr-xr-x 1 root root 87972 Mar 1 2019 mkdir + -rwxr-xr-x 1 root root 79748 Mar 1 2019 mknod + -rwxr-xr-x 1 root root 46916 Mar 1 2019 mktemp + -rwxr-xr-x 1 root root 42348 Jan 10 2019 more + -rwsr-xr-x 1 root root 50592 Jan 10 2019 mount + -rwxr-xr-x 1 root root 13724 Jan 10 2019 mountpoint + -rwxr-xr-x 1 root root 157832 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 38660 Mar 1 2019 pwd + lrwxrwxrwx 1 root root 4 Apr 18 2019 rbash -> bash + -rwxr-xr-x 1 root root 46852 Mar 1 2019 readlink + -rwxr-xr-x 1 root root 75588 Mar 1 2019 rm + -rwxr-xr-x 1 root root 42756 Mar 1 2019 rmdir + -rwxr-xr-x 1 root root 22276 Jan 22 2019 run-parts + -rwxr-xr-x 1 root root 125036 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Jul 8 08:30 sh -> bash + lrwxrwxrwx 1 root root 4 Jul 7 22:26 sh.distrib -> dash + -rwxr-xr-x 1 root root 34532 Mar 1 2019 sleep + -rwxr-xr-x 1 root root 79652 Mar 1 2019 stty + -rwsr-xr-x 1 root root 71072 Jan 10 2019 su + -rwxr-xr-x 1 root root 34564 Mar 1 2019 sync + -rwxr-xr-x 1 root root 504024 Apr 24 2019 tar + -rwxr-xr-x 1 root root 13860 Jan 22 2019 tempfile + -rwxr-xr-x 1 root root 104292 Mar 1 2019 touch + -rwxr-xr-x 1 root root 34532 Mar 1 2019 true + -rwxr-xr-x 1 root root 17768 Apr 23 09:38 ulockmgr_server + -rwsr-xr-x 1 root root 30108 Jan 10 2019 umount + -rwxr-xr-x 1 root root 34532 Mar 1 2019 uname + -rwxr-xr-x 2 root root 2345 Jan 6 2019 uncompress + -rwxr-xr-x 1 root root 149736 Mar 1 2019 vdir + -rwxr-xr-x 1 root root 34208 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/6295/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -361,7 +397,7 @@ Get: 145 http://deb.debian.org/debian buster/main i386 ruby-rspec-its all 1.2.0-3 [6296 B] Get: 146 http://deb.debian.org/debian buster/main i386 ruby-sqlite3 i386 1.3.13-1+b2 [42.6 kB] Get: 147 http://deb.debian.org/debian buster/main i386 ruby-timecop all 0.8.0-1 [9536 B] -Fetched 44.7 MB in 1s (60.7 MB/s) +Fetched 44.7 MB in 19s (2309 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0:i386. (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 ... 19234 files and directories currently installed.) @@ -981,7 +1017,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 @@ -1021,58 +1057,58 @@ install -d /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/strategy/attributes_for.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/strategy/attributes_for.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/strategy/create.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/strategy/create.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/strategy/build.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/strategy/build.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/strategy/null.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/strategy/null.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/strategy/stub.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/strategy/stub.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/version.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/version.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/find_definitions.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/find_definitions.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/attribute/dynamic.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/attribute/dynamic.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/attribute/sequence.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/attribute/sequence.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/attribute/association.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/attribute/association.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/attribute/static.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/attribute/static.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/evaluator_class_definer.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/evaluator_class_definer.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/evaluation.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/evaluation.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/registry.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/registry.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/strategy_syntax_method_registrar.rb install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/syntax_runner.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/syntax_runner.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/factory_runner.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/factory_runner.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/declaration.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/declaration.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/syntax.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/syntax.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/reload.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/reload.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/sequence.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/sequence.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/aliases.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/aliases.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/factory.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/factory.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/attribute.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/attribute.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/evaluator.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/evaluator.rb install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/errors.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/errors.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/strategy_calculator.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/strategy_calculator.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/null_object.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/null_object.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/attribute_list.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/attribute_list.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/configuration.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/configuration.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/definition.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/definition.rb install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/linter.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/linter.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/evaluation.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/evaluation.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/configuration.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/configuration.rb install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/decorator.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/decorator.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/attribute/static.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/attribute/static.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/attribute/association.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/attribute/association.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/attribute/sequence.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/attribute/sequence.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/attribute/dynamic.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/attribute/dynamic.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/version.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/version.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/factory.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/factory.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/definition.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/definition.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/definition_hierarchy.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/definition_hierarchy.rb install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/callback.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/callback.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/attribute_assigner.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/attribute_assigner.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/evaluator_class_definer.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/evaluator_class_definer.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/attribute.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/attribute.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/syntax.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/syntax.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/null_factory.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/null_factory.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/strategy/build.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/strategy/build.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/strategy/null.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/strategy/null.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/strategy/stub.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/strategy/stub.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/strategy/attributes_for.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/strategy/attributes_for.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/strategy/create.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/strategy/create.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/decorator/new_constructor.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/decorator/new_constructor.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/decorator/invocation_tracker.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/decorator/invocation_tracker.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/decorator/attribute_hash.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/decorator/attribute_hash.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/decorator/disallows_duplicates_registry.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/decorator/disallows_duplicates_registry.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/decorator/class_key_hash.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/decorator/class_key_hash.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/definition_proxy.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/definition_proxy.rb install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/trait.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/trait.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/find_definitions.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/find_definitions.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/declaration.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/declaration.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/attribute_assigner.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/attribute_assigner.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/declaration_list.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/declaration_list.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/declaration/dynamic.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/declaration/dynamic.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/declaration/association.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/declaration/association.rb install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/declaration/implicit.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/declaration/implicit.rb install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/declaration/static.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/declaration/static.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/declaration/association.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/declaration/association.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/declaration/dynamic.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/declaration/dynamic.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/factory_runner.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/factory_runner.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/evaluator.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/evaluator.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/definition_hierarchy.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/definition_hierarchy.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/aliases.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/aliases.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/strategy_syntax_method_registrar.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/reload.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/reload.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/attribute_list.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/attribute_list.rb install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/syntax/default.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/syntax/default.rb install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/syntax/methods.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/syntax/methods.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/definition_proxy.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/definition_proxy.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/registry.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/registry.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/sequence.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/sequence.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/null_factory.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/null_factory.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/null_object.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/null_object.rb +install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/strategy_calculator.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/strategy_calculator.rb install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/callbacks_observer.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/callbacks_observer.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/declaration_list.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/declaration_list.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/decorator/invocation_tracker.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/decorator/invocation_tracker.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/decorator/new_constructor.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/decorator/new_constructor.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/decorator/disallows_duplicates_registry.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/decorator/disallows_duplicates_registry.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/decorator/attribute_hash.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/decorator/attribute_hash.rb -install -D -m644 /build/ruby-factory-bot-4.11.1/lib/factory_bot/decorator/class_key_hash.rb /build/ruby-factory-bot-4.11.1/debian/ruby-factory-bot/usr/lib/ruby/vendor_ruby/factory_bot/decorator/class_key_hash.rb ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install Rubygems integration metadata │ @@ -1094,388 +1130,486 @@ 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/i386-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 20041 +Randomized with seed 44408 -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::DeclarationList#attributes + defines each attribute on the attribute list + returns an AttributeList -FactoryBot::AttributeList filter based on ignored attributes - filters #non_ignored attributes - filters #ignored attributes +FactoryBot::Factory when defined with a custom class name + build_class + should eq ArgumentError -FactoryBot::NullFactory - should delegate :defined_traits - should delegate :constructor - should delegate :callbacks - should delegate :attributes - class_name - should be nil - evaluator_class - should eq FactoryBot::Evaluator - attributes - should be an instance of FactoryBot::AttributeList - compile +FactoryBot + finds a registered trait + finds a registered sequence + finds a registered factory + +FactoryBot::Definition#to_create + returns the assigned value when given a block + to_create should be nil -FactoryBot::DefinitionProxy adding callbacks - #before(:stub, :create) - should have callback :before_create - should have callback :before_stub - #after(:stub, :create) - should have callback :after_stub - should have callback :after_create - #after(:build) - should have callback :after_build - #after(:create) - should have callback :after_create - #callback(:after_stub, :before_create) - should have callback :after_stub - should have callback :before_create - #after(:stub) - should have callback :after_stub +FactoryBot::Registry + knows that an object is registered by string + knows when an object is not registered + iterates registered objects + knows that an object is registered by symbol + finds a registered object + adds and returns the object registered + clears registered factories + does not include duplicate objects with registered under different names + finds a registered object with square brackets + raises when an object cannot be found + should be a kind of Enumerable + +FactoryBot::DefinitionProxy#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: + +gender { "Male" } + +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:198) + declares a trait FactoryBot::Attribute::Sequence assigns the next value in the sequence name should eq :first_name -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::StrategyCalculator + when a symbol + finds the strategy by name + returns the strategy found + when a class + returns the class passed -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 after defining an alias + should include :test_suffix_id + should include :test + +FactoryBot::Attribute::Association with a string name + name + should eq :name + +FactoryBot::Attribute::Dynamic + with a block returning a static value + returns the value when executing the proc + with a block referencing an attribute on the attribute + evaluates the attribute from the attribute + with a block returning a sequence + raises a sequence abuse error + with a block returning its block-level variable + returns self when executing the proc + name + should eq :first_name + +FactoryBot::Definition adding callbacks + maintains a list of callbacks + +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::Factory when defined with a class instead of a name + name + should eq :argument_error + build_class + should eq ArgumentError + +FactoryBot::Factory + passes a custom creation block + includes associations from the parent factory + guesses the build class from the factory name + returns associations + has a factory name + creates a new factory while overriding the parent class + creates a new factory using the class of the parent + has a build class + overriding an attribute with an alias + uses the passed in value for the alias + discards the predefined value for the attribute + when overriding generated attributes with a hash + does not call a lazy attribute block for an overridden attribute + overrides a symbol parameter with a string parameter + returns the overridden value in the generated attributes + +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::DefinitionProxy#initialize_with defines the constructor on the definition -FactoryBot::Sequence - a basic sequence without a block - behaves like a sequence - when incrementing - next - should eq 2 - next - should eq 1 - after rewinding - next - should eq 1 - a custom sequence without a block - behaves like a sequence - when incrementing - next - should eq "B" - next - should eq "A" - after rewinding - next - should eq "A" - a sequence with custom value and aliases +FactoryBot::DefinitionProxy#association + declares an association + declares an association with options + +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::Decorator::DisallowsDuplicatesRegistry + delegates #register to the registry when not registered + raises when attempting to #register a previously registered strategy + +FactoryBot::Factory human names + factory name without underscores names - should eq [:test, :alias, :other] - behaves like a sequence - after rewinding - next - should eq "=3" - next - should eq "=3" - when incrementing - next - should eq "=4" - iterating over items in an enumerator - navigates to the next items until no items remain - behaves like a sequence - when incrementing - next - should eq "=bar" - after rewinding - next - should eq "=foo" - next - should eq "=foo" - a sequence with aliases using default value - behaves like a sequence - when incrementing - next - should eq "=2" - after rewinding - next - should eq "=1" - next - should eq "=1" + should eq [:user] + human_names + should eq ["user"] + factory name with aliases + human_names + should eq ["happy user", "gleeful user", "person"] names - should eq [:test, :alias, :other] - 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 basic sequence - name - should eq :test + should eq [:happy_user, :gleeful_user, :person] + factory name with big letters + human_names + should eq ["lol"] names - should eq [:test] - behaves like a sequence - after rewinding - next - should eq "=1" - next - should eq "=1" - when incrementing - next - should eq "=2" - a custom sequence - behaves like a sequence - after rewinding - next - should eq "=A" - when incrementing - next - should eq "=B" - next - should eq "=A" + should eq [:LoL] + factory name with underscores + human_names + should eq ["happy user"] + names + should eq [:happy_user] -FactoryBot::Attribute::Association with a string name +FactoryBot::Definition + should delegate :declare_attribute + +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 + runs the factory with the correct overrides + finds the factory with the correct factory name + it should behave like strategy with callbacks + returns the object from the evaluation + runs the callbacks [:after_build] with the evaluation's object + +FactoryBot::Attribute::Static + returns the value when executing the proc name - should eq :name + should eq :first_name -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 +FactoryBot::AttributeList#define_attribute + raises if an attribute has already been defined + maintains a list of attributes + returns the attribute + +FactoryBot::Definition#overridable + sets the declaration list as overridable + +FactoryBot::AttributeList#associations + returns associations + +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 defining traits + adds only unique traits + maintains a list of traits + +FactoryBot::Factory when given a class that overrides #to_s + sets build_class correctly FactoryBot::Attribute::Association builds the association when calling the proc - should be association builds the association when calling the proc + should be association name should eq :author -FactoryBot::Factory when defined with a custom class - build_class - should eq Float +FactoryBot::Callback + has a name + runs its block with no parameters + allows valid callback names to be assigned + runs its block with two parameters + raises if an invalid callback name is assigned + converts strings to symbols + runs its block with one parameter -FactoryBot::Definition#to_create - returns the assigned value when given a block - to_create - should be nil +FactoryBot aliases + aliases for a foreign key + should include :test_id + should include :test + aliases for an attribute + should include :test_id + should include :test + aliases for an attribute starting with an underscore + should not include :id + +FactoryBot::DefinitionProxy adding callbacks + #after(:build) + should have callback :after_build + #callback(:after_stub, :before_create) + should have callback :before_create + should have callback :after_stub + #after(:stub, :create) + should have callback :after_stub + should have callback :after_create + #before(:stub, :create) + should have callback :before_stub + should have callback :before_create + #after(:stub) + should have callback :after_stub + #after(:create) + should have callback :after_create definition loading - with several factories files under test/factories + with several factories files under spec/factories in non-alphabetical order + loads the files in the right order + with deeply nested factory 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/subdirectory/person_factory.rb + should load definitions from test/factories/subdirectory/post_factory.rb with a factories file under spec/factories it should behave like finds definitions should load definitions from spec/factories/post_factory.rb + with factories.rb + it should behave like finds definitions + should load definitions from factories.rb + with a factories file under spec + it should behave like finds definitions + should load definitions from spec/factories.rb + with several factories files under test/factories in non-alphabetical order + loads the files in the right order + with nested and unnested factories files under test + it should behave like finds definitions + should load definitions from test/factories.rb + should load definitions from test/factories/post_factory.rb + should load definitions from test/factories/person_factory.rb with nested and unnested factories files under spec it should behave like finds definitions should load definitions from spec/factories/post_factory.rb should load definitions from spec/factories.rb should load definitions from spec/factories/person_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 a factories file under test it should behave like finds definitions should load definitions from test/factories.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 nested and unnested factories files under test + 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 - should load definitions from test/factories.rb - with a factories file under test/factories - it should behave like finds definitions should load definitions from test/factories/post_factory.rb - with factories.rb - it should behave like finds definitions - should load definitions from factories.rb - with a factories file under spec + with deeply nested factory files under spec it should behave like finds definitions - should load definitions from spec/factories.rb - with several factories files under spec/factories in non-alphabetical order - loads the files in the right order + should load definitions from spec/factories/subdirectory/post_factory.rb + should load definitions from spec/factories/subdirectory/person_factory.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 deeply nested factory files under test - it should behave like finds definitions - should load definitions from test/factories/subdirectory/post_factory.rb - should load definitions from test/factories/subdirectory/person_factory.rb - with several factories files under test/factories in non-alphabetical order - loads the files in the right order - -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 - -FactoryBot::Attribute::Static with a string name - name - should eq :name - -FactoryBot::Factory - has a factory name - has a build class - creates a new factory while overriding the parent class - returns associations - creates a new factory using the class of the parent - guesses the build class from the factory name - includes associations from the parent factory - passes a custom creation block - overriding an attribute with an alias - uses the passed in value for the alias - discards the predefined value for the attribute - when overriding generated attributes with a hash - does not call a lazy attribute block for an overridden attribute - overrides a symbol parameter with a string parameter - returns the overridden value in the generated attributes - -FactoryBot::AttributeList#apply_attributes - adds attributes in the order defined regardless of attribute type - -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 - 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 - returns an evaluator when accessing the evaluator class - 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::Factory running a factory - calls the block and returns the result - creates the right strategy using the build class when running - returns the result from the strategy when running + should load definitions from spec/factories/post_factory.rb FactoryBot::Strategy::Stub - 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 finds the factory with the correct factory name runs the factory with the correct overrides + it should behave like strategy with strategy: :build + runs the factory with the correct overrides + finds the factory with the correct factory name asking for a result + should be persisted should not be new record - should not be destroyed assigns created_at - should be persisted - overriding persistence method: #update_attributes + should not be destroyed + overriding persistence method: #save raises an informative error if the method is called overrides the method with any arity - overriding persistence method: #decrement! + overriding persistence method: #connection overrides the method with any arity raises an informative error if the method is called - overriding persistence method: #save! - 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! overrides the method with any arity raises an informative error if the method is called overriding persistence method: #delete overrides the method with any arity raises an informative error if the method is called - overriding persistence method: #update_column - overrides the method with any arity + overriding persistence method: #update_attributes! raises an informative error if the method is called - overriding persistence method: #increment! + overrides the method with any arity + overriding persistence method: #touch raises an informative error if the method is called overrides the method with any arity overriding persistence method: #update_columns - 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: #reload + overriding persistence method: #decrement! 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 + overriding persistence method: #save! overrides the method with any arity - overriding persistence method: #update_attributes! raises an informative error if the method is called - overrides the method with any arity overriding persistence method: #toggle! overrides the method with any arity raises an informative error if the method is called - overriding persistence method: #save + overriding persistence method: #update raises an informative error if the method is called overrides the method with any arity - overriding persistence method: #connection - 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: #destroy! + overrides the method with any arity raises an informative error if the method is called + overriding persistence method: #reload overrides the method with any arity + raises an informative error if the method is called overriding persistence method: #update_attribute raises an informative error if the method is called overrides the method with any arity - overriding persistence method: #touch + overriding persistence method: #update_attributes raises an informative error if the method is called overrides the method with any arity + overriding persistence method: #destroy + overrides the method with any arity + raises an informative error if the method is called it should behave like strategy with callbacks runs the callbacks [:after_stub] with the evaluation's object returns the object from the evaluation -FactoryBot::NullObject - does not respond to other methods - responds to the given methods +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::Definition#overridable - sets the declaration list as overridable +FactoryBot::Sequence + a sequence with custom value and aliases + behaves like a sequence + when incrementing + next + should eq "=4" + after rewinding + next + should eq "=3" + next + should eq "=3" + names + should eq [:test, :alias, :other] + a custom sequence and scope + increments within the correct scope + when incrementing + increments within the correct scope + after rewinding + increments within the correct scope + iterating over items in an enumerator + navigates to the next items until no items remain + behaves like a sequence + after rewinding + next + should eq "=foo" + when incrementing + next + should eq "=bar" + next + should eq "=foo" + a sequence with aliases using default value + names + should eq [:test, :alias, :other] + behaves like a sequence + next + should eq "=1" + after rewinding + next + should eq "=1" + when incrementing + next + should eq "=2" + a basic sequence without a block + behaves like a sequence + after rewinding + next + should eq 1 + when incrementing + next + should eq 2 + next + should eq 1 + a custom sequence without a block + behaves like a sequence + next + should eq "A" + after rewinding + next + should eq "A" + when incrementing + next + should eq "B" + a custom sequence + behaves like a sequence + next + should eq "=A" + after rewinding + next + should eq "=A" + when incrementing + next + should eq "=B" + a basic sequence + names + should eq [:test] + name + should eq :test + behaves like a sequence + when incrementing + next + should eq "=2" + next + should eq "=1" + after rewinding + next + should eq "=1" -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::DeclarationList#declare_attribute + when overridable + adds the declaration to the list + deletes declarations with the same name + when not overridable + adds the declaration to the list FactoryBot::Factory with a name ending in s - name - should eq :business build_class should eq Business - -FactoryBot - finds a registered sequence - finds a registered trait - finds a registered factory - -FactoryBot::DefinitionProxy#association - declares an association - declares an association with options - -FactoryBot::Attribute::Dynamic with a string name name - should eq :name + should eq :business -FactoryBot::DefinitionProxy#add_attribute - declares a dynamic attribute on the factory +FactoryBot::DefinitionProxy#method_missing DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -1489,15 +1623,33 @@ --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:12) - declares a static attribute on the factory - raises if both a block and value are given + (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 + declares a dynamic attribute -FactoryBot::AttributeList generating names - knows all its #names for #associations - knows all its #names for #ignored attributes - knows all its #names for #non_ignored attributes - knows all its #names +FactoryBot::Declaration::Implicit + with a known factory + should be association + factory + should eq :author + with a known sequence + should be a kind of FactoryBot::Attribute::Sequence + should not be association + +FactoryBot::Strategy::Create + runs a custom create block + it should behave like strategy with callbacks + returns the object from the evaluation + runs the callbacks [:after_build, :before_create, :after_create] with the evaluation's object + it should behave like strategy with association support + runs the factory with the correct overrides + finds the factory with the correct factory name + +FactoryBot::Attribute::Static with a string name + name + should eq :name FactoryBot::Attribute should not be association @@ -1505,96 +1657,67 @@ name should eq :user -FactoryBot::Attribute::Static - returns the value when executing the proc - name - should eq :first_name - -FactoryBot::AttributeList#associations - returns associations - -FactoryBot::AttributeList#define_attribute - returns the attribute - maintains a list of attributes - raises if an attribute has already been defined - FactoryBot::Factory with a string for a name name should eq :string -FactoryBot::Registry - knows that an object is registered by string - finds a registered object - adds and returns the object registered - clears registered factories - raises when an object cannot be found - knows that an object is registered by symbol - finds a registered object with square brackets - does not include duplicate objects with registered under different names - iterates registered objects - knows when an object is not registered - should be a kind of Enumerable - -FactoryBot::StrategyCalculator - when a class - returns the class passed - when a symbol - finds the strategy by name - returns the strategy found - -FactoryBot::DefinitionProxy#add_attribute when the proxy ignores attributes - 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: - -attribute_name { "attribute value" } - -To automatically update from static attributes to dynamic ones, -install rubocop-rspec and run: +FactoryBot::Definition with a name + creates a new attribute list with the name passed -rubocop \ - --require rubocop-rspec \ - --only FactoryBot/AttributeDefinedStatically \ - --auto-correct +FactoryBot::Factory when defined with a custom class + build_class + should eq Float - (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 +FactoryBot::EvaluatorClassDefiner + only instance_execs the block once even when returning nil + returns an evaluator when accessing the evaluator class + sets attributes on the evaluator class + evaluates the block in the context of the evaluator + adds each attribute to the evaluator + with a custom evaluator as a parent class + bases its attribute lists on itself and its parent evaluator -FactoryBot::Callback - raises if an invalid callback name is assigned - runs its block with no parameters - runs its block with one parameter - allows valid callback names to be assigned - runs its block with two parameters - has a name - converts strings to symbols +FactoryBot::NullObject + does not respond to other methods + responds to the given methods -FactoryBot::DefinitionProxy#method_missing - declares an implicit declaration without args or a block - 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: +FactoryBot::DefinitionProxy#to_create + accepts a block to run in place of #save! -attribute_name { "attribute value" } +FactoryBot::Attribute::Dynamic with a string name + name + should eq :name -To automatically update from static attributes to dynamic ones, -install rubocop-rspec and run: +FactoryBot::NullFactory + should delegate :callbacks + should delegate :constructor + should delegate :defined_traits + should delegate :attributes + compile + should be nil + evaluator_class + should eq FactoryBot::Evaluator + attributes + should be an instance of FactoryBot::AttributeList + class_name + should be nil -rubocop \ - --require rubocop-rspec \ - --only FactoryBot/AttributeDefinedStatically \ - --auto-correct +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 - (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 association when :factory is passed +FactoryBot::DefinitionProxy#factory + with options + without options + with a block -FactoryBot::DefinitionProxy#trait +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: -gender { "Male" } +attribute_name { "attribute value" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1604,85 +1727,14 @@ --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:198) - declares a trait - -FactoryBot::Definition with a name - creates a new attribute list with the name passed - -FactoryBot::Decorator::DisallowsDuplicatesRegistry - delegates #register to the registry when not registered - raises when attempting to #register a previously registered strategy - -FactoryBot::Factory human names - factory name with underscores - names - should eq [:happy_user] - human_names - should eq ["happy user"] - 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 big letters - human_names - should eq ["lol"] - names - should eq [:LoL] - -FactoryBot::Factory when given a class that overrides #to_s - sets build_class correctly - -FactoryBot::Strategy::Create - runs a custom create block - 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 after defining an alias - should include :test - should include :test_suffix_id - -FactoryBot::Definition defining traits - maintains a list of traits - adds only unique traits - -FactoryBot::DefinitionProxy#factory - without options - with options - with a block - -FactoryBot::DefinitionProxy#to_create - accepts a block to run in place of #save! - -FactoryBot::Attribute::Dynamic - with a block referencing an attribute on the attribute - evaluates the attribute from the attribute - 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 returning a sequence - raises a sequence abuse error - name - should eq :first_name - -FactoryBot::Factory when defined with a class instead of a name - name - should eq :argument_error - 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 + raises if both a block and value are given + declares a dynamic attribute on the factory -FactoryBot::DefinitionProxy#transient +FactoryBot::DefinitionProxy#add_attribute when the proxy ignores attributes + 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: @@ -1696,48 +1748,54 @@ --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::Definition - should delegate :declare_attribute - -FactoryBot::Factory when defined with a custom class name - build_class - should eq ArgumentError - -FactoryBot::Strategy::Build - it should behave like strategy with callbacks - returns the object from the evaluation - runs the callbacks [:after_build] with the evaluation's object - 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 + (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 -FactoryBot::Definition adding callbacks - maintains a list of callbacks +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::DeclarationList#attributes - returns an AttributeList - defines each attribute on the attribute list +FactoryBot::Factory running a factory + creates the right strategy using the build class when running + returns the result from the strategy when running + calls the block and returns the result -Finished in 0.60191 seconds (files took 0.65606 seconds to load) +Finished in 3.53 seconds (files took 4.45 seconds to load) 273 examples, 0 failures -Randomized with seed 20041 +Randomized with seed 44408 /usr/bin/ruby2.5 /usr/bin/rspec --pattern spec/acceptance/\*\*/\*_spec.rb --format documentation -Randomized with seed 40182 +Randomized with seed 8777 -including FactoryBot::Syntax::Methods when custom strategies have been declared +a generated stub instance + disables decrement! + disables toggle! + disables increment! + assigns associations + assigns an overridden attribute + allows toggle + allows increment + disables save + isn't changed + isn't a new record + has an id + disables destroy + disables update_attribute + disables reload + disables connection + generates unique ids + allows decrement + assigns a default attribute + assigns associations that aren't new records + +declaring attributes on a Factory that are private methods on Object + 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 { "Great" } +system { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1747,21 +1805,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:68) - allows adding additional strategies - -global initialize_with - handles inline trait override - uses initialize_with globally across FactoryBot.define - handles base initialize_with - handles child initialize_with with trait - handles child initialize_with - -FactoryBot.lint + (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 { "assigned" } +link { "http://example.com" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1771,14 +1819,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 - raises when a factory is invalid - allows for selective linting + (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 { "assigned" } +sleep { 15 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1788,12 +1833,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:71) - allows for explicit factories and additional options + (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 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" } +system { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1803,13 +1849,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:85) - allows for additional options without explicit factories - factory strategy for linting + (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 { "Barbara" } +link { "http://example.com" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1819,11 +1863,11 @@ --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 (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 { "Bob" } +sleep { 15 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1833,12 +1877,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:197) - uses the requested strategy during trait validation + (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 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" } +system { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1848,14 +1893,11 @@ --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 - trait validation - enabled + (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 { "Yep" } +link { "http://example.com" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1865,11 +1907,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:101) + (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 { nil } +sleep { 15 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1879,12 +1921,14 @@ --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/attribute_existing_on_object_spec.rb:9) + should eq -5 + +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 { "Yep" } +foo { 123 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1894,11 +1938,14 @@ --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 (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/private_attributes_spec.rb:10) + raises a NoMethodError + +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: -name { "Yessir" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1908,13 +1955,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/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: -name { "Yep" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1924,11 +1969,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:147) + (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: -name { nil } +posts_count { 5 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1938,25 +1983,12 @@ --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 - -callbacks - runs the after(:build) callback when building - runs child callback after parent callback - runs both the after(:build) and after(:create) callbacks when creating - runs the after(:stub) callback when stubbing - runs both the after(:stub) callback on the factory and the inherited after(:stub) callback - -association assignment from nested attributes - assigns the correct amount of comments - assigns the correct amount of comments when overridden - -attributes defined using Symbol#to_proc + (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: -password { "foo" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1966,12 +1998,11 @@ --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/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: -password { "foo" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1981,12 +2012,11 @@ --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/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: -password { "foo" } +posts_count { 5 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -1996,14 +2026,14 @@ --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 (6 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:85) + generates the correct number of posts -custom callbacks +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: -first_name { "John" } +email { "john@example.com" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2013,11 +2043,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 (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: -last_name { "Doe" } +email { "john@example.com" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2027,12 +2058,20 @@ --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 + (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 + +a stubbed instance + assigns associations and acts as if it is saved + acts as if it came from the database + +nested implicit traits + 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: -first_name { "John" } +gender { "female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2042,11 +2081,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 (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: -last_name { "Doe" } +role { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2056,12 +2095,14 @@ --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 (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 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" } +gender { "female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2071,11 +2112,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: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: -last_name { "Doe" } +role { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2085,15 +2126,14 @@ --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:597) + assigns the correct values -attribute aliases - assigning an association by passing factory +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 Doe" } +name { "My Awesome Report" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2103,13 +2143,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) - 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/initialize_with_spec.rb:66) + generates random data 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 { "My Awesome Report" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2119,20 +2158,10 @@ --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 - -initialize_with for a constructor that requires a block - executes the block correctly - -a generated attributes hash - assigns an overridden value - doesn't assign associations - assigns a default value - assigns a lazy, dependent attribute + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:66) + allows for overrides -associations without overriding :strategy - when the :use_parent_strategy config option has been enabled +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: @@ -2146,13 +2175,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 - 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/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: -name { "John Doe" } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2162,28 +2189,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:96) - uses the overridden strategy on the association - -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 not been set - assigns and saves associations - when the :use_parent_strategy config option has been enabled - assigns but does not save associations - -syntax methods within dynamic attributes - can access syntax methods from dynamic attributes - can access syntax methods from dynamic attributes - allows syntax methods to be used when the block has an arity of 1 - can access methods already existing on the class - -defining a child factory before a parent + (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: -admin { true } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2193,11 +2204,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 (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: -name { "awesome" } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2207,13 +2218,8 @@ --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 - -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/global_to_create_spec.rb:90) + honors inline trait 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: @@ -2227,15 +2233,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 - -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: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: -title { "Through the Looking Glass" } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2245,12 +2247,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: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: -title { "Through the Looking Glass" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2260,13 +2262,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: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: -title { "Through the Looking Glass" } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2276,14 +2276,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:90) + does not persist any record -multiple creates and transient attributes to dynamically build attribute lists +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: -title { "Through the Looking Glass" } +admin { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2293,11 +2293,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:76) + (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: -name { "John Doe" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2307,11 +2307,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:81) + (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: -posts_count { 5 } +admin { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2321,12 +2322,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) - generates the correct number of posts + (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: -title { "Through the Looking Glass" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2336,11 +2336,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:76) + (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 { "John Doe" } +admin { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2350,11 +2351,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 (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: -posts_count { 5 } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2364,48 +2365,35 @@ --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 - -transient sequences - increments sequences correctly - -a stubbed instance - assigns associations and acts as if it is saved - acts as if it came from the database - -global callbacks - triggers after build callbacks for all factories - -defaulting `id` - allows overriding id + (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 -initialize_with with non-FG attributes - name - should eq "John Doe" - age - should eq 21 +static attribute deprecation warnings + an implicit attribute via method missing + prints where attribute is declared + using #add_attribute + prints where attribute is declared -calling `create` with a block - passes the created instance - returns the created instance +defaulting `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 + defaults updated_at for objects with updated_at + allows overriding updated_at for objects with updated_at -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" +an instance generated by a factory with a custom class name + should be admin + should be a kind of User(id: integer, admin: boolean) -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 +a built instance with strategy: :create + assigns and saves associations + should be new record -an instance generated by a factory with multiple traits - the child with multiple traits who override the same attribute - when the male assigns name after female +create 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 { "John" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2415,11 +2403,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 (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_list_spec.rb:7) + uses the new values + 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: -great { "GREAT!!!" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2429,11 +2419,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:20) + (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: -admin { true } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2443,11 +2435,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 (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: @@ -2457,11 +2450,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:28) + (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 { "Joe" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2471,11 +2466,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/create_list_spec.rb:7) + should eq 20 + 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: -gender { "Male" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2485,11 +2482,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 (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 + +traits added via strategy + 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 { "Jane" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2499,11 +2500,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 (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: -gender { "Female" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2513,11 +2514,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 (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: -admin { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2527,11 +2530,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 (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 { "Judy" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2541,11 +2544,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/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: -name { "Bill" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2555,13 +2560,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 - gender + (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" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2571,11 +2574,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:17) + (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 attributes_for + [: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: -great { "GREAT!!!" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2585,7 +2591,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:20) + (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: @@ -2599,11 +2605,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:24) + (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: -admin { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2613,11 +2621,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 (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 { "Joe" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2627,11 +2635,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/traits_spec.rb:229) + should eq "John" + 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: -gender { "Male" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2641,11 +2651,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 (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 { "Jane" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2655,11 +2665,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/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: -gender { "Female" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2669,7 +2681,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:38) + (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: @@ -2683,11 +2695,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/traits_spec.rb:229) + should eq 2 + 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 { "Judy" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2697,11 +2711,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 (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 { "Bill" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2711,9 +2725,9 @@ --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" - name + (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: @@ -2727,11 +2741,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: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: -great { "GREAT!!!" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2741,11 +2755,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:20) + (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 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 { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2755,7 +2772,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: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: @@ -2769,11 +2786,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:28) + (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: -name { "Joe" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2783,11 +2802,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: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: -gender { "Male" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2797,11 +2816,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:33) + (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 + 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 { "Jane" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2811,11 +2833,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 (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: -gender { "Female" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2825,11 +2847,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 (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: -admin { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2839,11 +2863,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 (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 { "Judy" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2853,11 +2877,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:58) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:229) + should eq "Joe" + +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: -name { "Bill" } +email { "john@example.com" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2867,13 +2894,21 @@ --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 "Joe" - when the female assigns name after male + (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 + +initialize_with doesn't duplicate assignment on attributes accessed from initialize_with + instantiates the correct object + +a stubbed instance overriding strategy + acts as if it is saved in the database + assigns associations and acts as if it is saved + +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: -name { "John" } +gender { "female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2883,11 +2918,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/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: -great { "GREAT!!!" } +role { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2897,11 +2932,21 @@ --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:404) + can honor traits on the very first call + +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" + +a custom create + uses the custom create block instead of save + +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: @@ -2911,11 +2956,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 (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 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: @@ -2925,11 +2971,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/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: -name { "Joe" } +name { "Great" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2939,11 +2986,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:32) + (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: -gender { "Male" } +name { "Great" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2953,11 +3001,16 @@ --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/register_strategies_spec.rb:25) + allows using the *_list method to build a list using a custom strategy + +attribute overrides + 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: -name { "Jane" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2967,11 +3020,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/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: -gender { "Female" } +title { "default title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -2981,7 +3034,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 (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 DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -2995,11 +3051,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/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 { "Judy" } +title { "default title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3009,11 +3065,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:58) + (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: -name { "Bill" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3023,13 +3082,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 - gender + (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: @@ -3039,11 +3096,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:17) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/overrides_spec.rb:24) + should eq false + +initialize_with with FG attributes that are transient + name + should eq "Handsome Chap from .construct" + +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: -great { "GREAT!!!" } +ignored { "of course!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3053,11 +3117,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:20) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/initialize_with_spec.rb:197) + assigns attributes correctly + +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: -admin { true } +creation_name { "evaluator" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3067,11 +3134,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:24) + (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 + +initialize_with for a constructor that requires a block + executes the block correctly + +initialize_with with non-FG attributes + name + should eq "John Doe" + age + should eq 21 + +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: -admin { true } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3081,11 +3160,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 (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 { "Joe" } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3095,11 +3174,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:32) + (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 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: @@ -3109,11 +3189,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 (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 { "Jane" } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3123,11 +3203,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/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: -gender { "Female" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3137,11 +3218,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 (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: -admin { true } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3151,11 +3232,12 @@ --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/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: -name { "Judy" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3165,11 +3247,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 (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 { "Bill" } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3179,13 +3261,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:78) - should eq "Female" - name + (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 { "John" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3195,11 +3276,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/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: -great { "GREAT!!!" } +name { "Great title" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3209,11 +3290,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:20) + (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 + +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: -admin { true } +two { "set value" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3223,11 +3308,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:24) + (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: -admin { true } +two { "set value" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3237,11 +3324,21 @@ --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/aliases_spec.rb:9) + should eq "override" + +an instance generated by a factory named a camel case string + registers the UserModel factory + +calling `build` with a block + returns the built instance + passes the built instance + +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: -name { "Joe" } +status { "pending" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3251,11 +3348,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: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: -gender { "Male" } +status { "accepted" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3265,11 +3362,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/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 { "Jane" } +status { "declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3279,11 +3376,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/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: @@ -3293,11 +3390,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 (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: -admin { true } +status { "pending" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3307,11 +3405,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 (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 { "Judy" } +status { "accepted" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3321,11 +3419,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/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 { "Bill" } +status { "declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3335,13 +3433,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 "Jane" - the child with multiple traits and overridden attributes + (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" } +status { "extended_declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3351,11 +3447,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:17) + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:362) + returns the default status 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!!!" } +status { "pending" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3365,11 +3462,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 (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: @@ -3379,11 +3476,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/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: -admin { true } +status { "declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3393,11 +3490,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/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 { "Joe" } +status { "extended_declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3407,11 +3504,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:32) + (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: -gender { "Male" } +status { "pending" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3421,11 +3519,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 (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 { "Jane" } +status { "accepted" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3435,11 +3533,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/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: -gender { "Female" } +status { "declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3449,11 +3547,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/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: @@ -3463,11 +3561,12 @@ --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/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: -name { "Judy" } +status { "pending" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3477,11 +3576,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 (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 { "Bill" } +status { "accepted" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3491,13 +3590,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 - gender + (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" } +status { "declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3507,11 +3604,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/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: -great { "GREAT!!!" } +status { "extended_declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3521,11 +3618,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: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: -admin { true } +status { "pending" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3535,11 +3633,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 (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: @@ -3549,11 +3647,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/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 { "Joe" } +status { "declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3563,11 +3661,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/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 { "Male" } +status { "extended_declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3577,11 +3675,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:33) + (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: -name { "Jane" } +status { "pending" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3591,11 +3690,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 (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: -gender { "Female" } +status { "accepted" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3605,11 +3704,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/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: -admin { true } +status { "declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3619,11 +3718,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/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 { "Judy" } +status { "extended_declined" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3633,11 +3732,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/traits_spec.rb:362) + prefers attributes on factories over attributes from non-inline traits + +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: -name { "Bill" } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3647,13 +3750,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 nil - 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: @@ -3663,11 +3764,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:17) + (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 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!!!" } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3677,11 +3779,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/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: @@ -3691,11 +3793,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/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: @@ -3705,11 +3808,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/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 { "Joe" } +upcased { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3719,11 +3822,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:32) + (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: -gender { "Male" } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3733,11 +3837,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/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 { "Jane" } +upcased { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3747,11 +3851,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 (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: -gender { "Female" } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3761,11 +3866,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/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: @@ -3775,11 +3880,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:57) + (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 + using aliased 'ignore' method name + uses the default value of the attribute + 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: -name { "Judy" } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3789,11 +3898,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/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 { "Bill" } +upcased { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3803,14 +3912,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:78) - should eq "Jill" - 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/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: -name { "John" } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3820,11 +3927,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/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: -great { "GREAT!!!" } +upcased { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3834,11 +3941,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/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: @@ -3848,11 +3956,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/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: @@ -3862,11 +3970,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/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: -name { "Joe" } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3876,11 +3985,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/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: -gender { "Male" } +upcased { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3890,11 +3999,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/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: -name { "Jane" } +rockstar { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3904,11 +4015,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/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: -gender { "Female" } +upcased { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3918,11 +4029,20 @@ --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/transient_attributes_spec.rb:12) + uses the default value of the attribute + +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 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: @@ -3932,11 +4052,12 @@ --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_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: -name { "Judy" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3946,11 +4067,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_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: -name { "Bill" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -3960,9 +4083,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 "Male" - factory created with alternate syntax where trait name and attribute are the same and attribute is overridden + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/create_pair_spec.rb:7) + should eq 2 + +an instance generated by a factory with multiple traits + 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: @@ -4118,9 +4243,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!!!" - child factory created where trait attributes are inherited - gender + should eq "GREAT!!!" + 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: @@ -4275,8 +4400,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 "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: @@ -4431,8 +4556,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 Sat, 01 Jan 2000 - the child with multiple traits + should eq "Bill" + 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: @@ -4588,7 +4713,7 @@ (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) should be admin - name + 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: @@ -4743,8 +4868,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 "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: @@ -4899,8 +5024,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" - child factory using grandparents' trait + should eq "Judy" + 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: @@ -5056,8 +5181,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!!!" - the parent class + should eq "SORT OF!!!" + 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: @@ -5212,8 +5337,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 + 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: @@ -5368,8 +5493,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 "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: @@ -5524,9 +5649,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 "John" - factory using global trait - name + should be nil + 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: @@ -5681,8 +5806,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" - email + should eq "GREAT!!!" + 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: @@ -5837,8 +5962,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@example.com" - the other child class with one trait + should raise ArgumentError with "Trait not registered: admin_trait" + 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: @@ -5993,8 +6119,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: @@ -6149,8 +6275,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 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: @@ -6305,8 +6431,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 outside of scope + 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: @@ -6461,8 +6587,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" - child class with scoped trait and inherited trait + 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: @@ -6617,8 +6743,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 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: @@ -6773,7 +6899,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" + should eq "Joe" + 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: @@ -6929,8 +7056,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 class with one trait + should eq "Male" + 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: @@ -7086,7 +7213,7 @@ (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) should be admin - name + 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: @@ -7241,8 +7368,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" - gender + 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: @@ -7397,9 +7524,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 - factory created with alternate syntax where trait name and attribute are the same - great + should eq "Jane" + 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: @@ -7554,14 +7680,12 @@ --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!!!" - -transient attributes - without transient variables assigned + 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: -rockstar { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7571,11 +7695,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/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: -upcased { false } +great { "GREAT!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7585,13 +7709,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) - uses the default value of the attribute - with a transient variable assigned + (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: -rockstar { true } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7601,11 +7723,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 (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: -upcased { false } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7615,12 +7737,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) - generates the correct attributes on a rockstar + (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: -rockstar { true } +name { "Joe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7630,11 +7751,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 (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: -upcased { false } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7644,12 +7765,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) - 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/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: -rockstar { true } +name { "Jane" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7659,11 +7779,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 (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: -upcased { false } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7673,12 +7793,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) - generates the correct attributes on an upcased rockstar + (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: -rockstar { true } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7688,11 +7807,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 (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: -upcased { false } +name { "Judy" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7702,15 +7821,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) - generates the correct attributes on a groupie - using aliased 'ignore' method name - uses the default value of the attribute - returning attributes for a factory + (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: -rockstar { true } +name { "Bill" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7720,11 +7835,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:11) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) + 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: -upcased { false } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7734,12 +7851,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 have key :email + (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: -rockstar { true } +great { "GREAT!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7749,11 +7865,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 (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: -upcased { false } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7763,12 +7879,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 (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: -rockstar { true } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7778,11 +7893,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 (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: -upcased { false } +name { "Joe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7792,12 +7907,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 have key :name + (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: -rockstar { true } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7807,11 +7921,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 (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: -upcased { false } +name { "Jane" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7821,12 +7935,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 :upcased + (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: -rockstar { true } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7836,11 +7949,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 (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: -upcased { false } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7850,25 +7963,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 :four - -initialize_with with FG attributes that are transient - name - should eq "Handsome Chap from .construct" - -assigning values from a transient attribute - does not ignore an _id attribute that is an alias for a transient attribute - -a built instance with strategy: :create - assigns and saves associations - should be new record - -global skip_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: @@ -7878,11 +7977,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: @@ -7892,12 +7991,14 @@ --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 (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) + should eq "John" + child factory created where trait attributes are inherited + 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: -name { "John Doe" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7907,11 +8008,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 (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: @@ -7921,12 +8022,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 any record + (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: @@ -7936,11 +8036,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: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: @@ -7950,12 +8050,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 (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: @@ -7965,11 +8064,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: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: @@ -7979,14 +8078,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 - -inline traits overriding existing attributes + (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: -status { "pending" } +name { "Jane" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -7996,11 +8092,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/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: -status { "accepted" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8010,11 +8106,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: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: -status { "declined" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8024,11 +8120,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 (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: -status { "extended_declined" } +name { "Judy" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8038,12 +8134,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 (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: -status { "pending" } +name { "Bill" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8053,11 +8148,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:355) + (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 + 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: -status { "accepted" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8067,11 +8164,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 (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: -status { "declined" } +great { "GREAT!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8081,11 +8178,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/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: -status { "extended_declined" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8095,12 +8192,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/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: -status { "pending" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8110,11 +8206,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/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: -status { "accepted" } +name { "Joe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8124,11 +8220,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: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: -status { "declined" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8138,11 +8234,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/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: -status { "extended_declined" } +name { "Jane" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8152,12 +8248,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/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: -status { "pending" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8167,11 +8262,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/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: -status { "accepted" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8181,11 +8276,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 (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: -status { "declined" } +name { "Judy" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8195,11 +8290,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 (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: -status { "extended_declined" } +name { "Bill" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8209,12 +8304,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: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/traits_spec.rb:78) + should eq "Male" + 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: -status { "pending" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8224,11 +8320,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 (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: -status { "accepted" } +great { "GREAT!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8238,11 +8334,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: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: -status { "declined" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8252,11 +8348,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/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: -status { "extended_declined" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8266,12 +8362,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 traits on a factory + (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: -status { "pending" } +name { "Joe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8281,11 +8376,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/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: -status { "accepted" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8295,11 +8390,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: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: -status { "declined" } +name { "Jane" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8309,11 +8404,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/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: -status { "extended_declined" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8323,12 +8418,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/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: -status { "pending" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8338,11 +8432,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 (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: -status { "accepted" } +name { "Judy" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8352,11 +8446,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 (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: -status { "declined" } +name { "Bill" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8366,11 +8460,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/traits_spec.rb:78) + 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: -status { "extended_declined" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8380,19 +8476,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 attributes on factories over attributes from non-inline traits - -binding a callback to multiple callbacks - binds the callback to stubbing - binds the callback to creation - does not bind the callback to building - -implicit traits containing callbacks + (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: -value { 0 } +great { "GREAT!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8402,18 +8490,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 `attributes_for` with a block - passes the hash of attributes - returns the hash of attributes - -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: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 { "My Awesome Report" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8423,12 +8504,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 + (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 { "My Awesome Report" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8438,17 +8518,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 - -a created instance, specifying strategy: :build - saves associations (strategy: :build only affects build, not create) - -using ActiveSupport::Instrumentation to track factory interaction + (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 { "john@example.com" } +name { "Joe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8458,12 +8532,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 + (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 { "john@example.com" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8473,20 +8546,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) - builds the correct payload - -sequences are evaluated in the correct context - builds a sequence calling sprintf correctly - invokes the correct method on the instance - invokes a method with no arguments on the instance - allows direct reference of a method in a sequence - -global to_create + (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 Doe" } +name { "Jane" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8496,11 +8560,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: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 { "Great title" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8510,12 +8574,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: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 Doe" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8525,11 +8588,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: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 { "Great title" } +name { "Judy" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8539,12 +8602,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: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 Doe" } +name { "Bill" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8554,11 +8616,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:14) + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) + should eq "Jane" + 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 { "Great title" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8568,12 +8632,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 + (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 Doe" } +great { "GREAT!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8583,11 +8646,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: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 { "Great title" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8597,12 +8660,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 with trait + (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: @@ -8612,11 +8674,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: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: @@ -8626,14 +8688,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 - -traits with callbacks + (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: @@ -8643,14 +8702,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:185) - executes callbacks in the order assigned - when the factory has an implicit trait - 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: @@ -8660,14 +8716,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:185) - should eq "JOHN" - when the factory has a trait passed via arguments - 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: @@ -8677,14 +8730,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:185) - should eq "JOHN" - -initialize_with parent and child factories + (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" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8694,11 +8744,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 (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 { "Sub" } +name { "Judy" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8708,12 +8758,11 @@ --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 + (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" } +name { "Bill" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8723,11 +8772,13 @@ --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:78) + should eq "Female" + 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: -name { "Sub" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8737,35 +8788,11 @@ --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 - -a generated stub instance - assigns associations that aren't new records - isn't a new record - disables decrement! - isn't changed - disables reload - disables destroy - disables save - generates unique ids - has an id - allows decrement - assigns a default attribute - disables connection - allows toggle - disables toggle! - disables increment! - disables update_attribute - allows increment - assigns associations - assigns an overridden attribute - -initialize_with has access to all attributes for construction + (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: -ignored { "of course!" } +great { "GREAT!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8775,15 +8802,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 - -a generated attributes hash where order matters - factory with a parent + (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: -static { 1 } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8793,11 +8816,11 @@ --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: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: -static { 1 } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8807,13 +8830,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 - factory without a parent + (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: -static { 1 } +name { "Joe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8823,11 +8844,11 @@ --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: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: -static { 1 } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8837,14 +8858,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 - -making sure the factory is properly compiled the first time we want to instantiate it + (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: -gender { "female" } +name { "Jane" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8854,11 +8872,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 (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: -role { "admin" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8868,15 +8886,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 and dynamic attributes that are applied simultaneously - name + (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: @@ -8886,13 +8900,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/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: @@ -8902,13 +8914,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@example.com" - combined + (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: @@ -8918,22 +8928,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:310) - should eq "John " - -traits with to_create - gives additional traits higher priority than base traits and factory definition - gives additional traits higher priority than to_create from the definition - can apply to_create from the definition - gives base traits lower priority than overrides - can apply to_create from traits - gives base traits normal priority - -traits used in associations + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:78) + should 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: -admin { false } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8943,11 +8944,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:687) + (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: @@ -8957,12 +8958,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: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: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: -admin { false } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -8972,7 +8972,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 (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: @@ -8986,12 +8986,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:690) - allows assigning traits for the factory of an association + (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 { false } +name { "Joe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9001,11 +9000,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:687) + (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: @@ -9015,18 +9014,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:690) - allows inline traits with the default association - -calling `build` with a block - returns the built instance - passes the built instance - -a custom create passing in an evaluator + (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: -creation_name { "evaluator" } +name { "Jane" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9036,20 +9028,11 @@ --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 - -a stubbed instance overriding strategy - assigns associations and acts as if it is saved - acts as if it is saved in the database - -an instance generated by a factory that inherits from another factory - the child class redefining parent's dynamic attribute with static attribute - email + (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: @@ -9059,11 +9042,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: @@ -9073,11 +9056,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: @@ -9087,11 +9070,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: @@ -9101,10 +9084,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 "" - 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:78) + should eq "Jill" + 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: @@ -9118,11 +9100,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: @@ -9132,7 +9114,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: @@ -9146,11 +9128,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: @@ -9160,13 +9142,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 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: @@ -9176,11 +9156,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: @@ -9190,11 +9170,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: @@ -9204,11 +9184,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: @@ -9218,13 +9198,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: @@ -9234,11 +9212,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: @@ -9248,11 +9226,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: @@ -9262,11 +9240,15 @@ --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 nil + +traits and dynamic attributes that are applied simultaneously + 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: -email { "" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9276,9 +9258,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 "john@example.com" - the child class redefining parent's static method used by a dynamic method + (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:310) + should eq "John " + 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: @@ -9292,11 +9274,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:310) + should eq "John@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 { "admin" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9306,11 +9290,21 @@ --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:310) + should eq "John" + +global initialize_with + handles base initialize_with + handles inline trait override + uses initialize_with globally across FactoryBot.define + handles child initialize_with with trait + handles child initialize_with + +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: -admin { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9320,11 +9314,14 @@ --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: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: -email { "" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9334,8 +9331,10 @@ --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 + (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: @@ -9349,11 +9348,18 @@ --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:185) + should eq "JOHN" + +association assignment from nested attributes + assigns the correct amount of comments when overridden + assigns the correct amount of comments + +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: -name { "admin" } +name { "assigned" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9363,11 +9369,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/lint_spec.rb:36) + does not raise when all factories are valid + 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: @@ -9377,11 +9385,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/lint_spec.rb:71) + allows for explicit factories and additional options + raises when a factory is invalid 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 { "assigned" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9391,13 +9401,14 @@ --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) - name + (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 + 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: -name { "John" } +name { "Yep" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9407,11 +9418,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/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: -name { "admin" } +name { nil } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9421,11 +9432,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 (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: @@ -9435,11 +9448,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/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: -email { "" } +name { nil } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9449,13 +9462,12 @@ --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 (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 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: @@ -9465,11 +9477,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/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 { "admin" } +name { "Yessir" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9479,11 +9491,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 (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 + 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: -admin { true } +name { "Barbara" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9493,11 +9507,12 @@ --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/lint_spec.rb:174) + uses the requested 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: -email { "" } +name { "Barbara" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9507,13 +9522,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" - upper_email + (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: -name { "John" } +name { "Bob" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9523,11 +9536,19 @@ --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/lint_spec.rb:197) + uses the requested strategy during trait validation + +callbacks using syntax methods without referencing FactoryBot explicitly + works when the callback has one variable + works when the callback has no variables + works when the callback has two variables + +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: -name { "admin" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9537,11 +9558,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/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: -admin { true } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9551,11 +9572,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/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: -email { "" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9565,13 +9586,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 child class redefining parent's dynamic method + (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: -name { "John" } +age { 17 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9581,11 +9600,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/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: -name { "admin" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9595,11 +9614,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/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: -admin { true } +age { 25 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9609,11 +9628,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/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: -email { "" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9623,13 +9642,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 - name + (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: -name { "John" } +age { 20 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9639,11 +9656,12 @@ --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/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: -name { "admin" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9653,11 +9671,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/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: -admin { true } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9667,11 +9685,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/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: -email { "" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9681,13 +9699,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" - email + (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: -name { "John" } +age { 17 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9697,11 +9713,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/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: -name { "admin" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9711,11 +9727,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/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: -admin { true } +age { 25 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9725,11 +9741,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/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: -email { "" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9739,13 +9755,12 @@ --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/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: -name { "John" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9755,11 +9770,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/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: -name { "admin" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9769,7 +9784,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/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: @@ -9783,11 +9798,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/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: -email { "" } +age { 17 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9797,16 +9812,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" - -nested implicit traits - defined outside 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/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: -gender { "female" } +gender { "Female" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9816,11 +9826,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/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: -role { "admin" } +age { 25 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9830,14 +9840,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 - 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/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: -gender { "female" } +gender { "Male" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9847,11 +9854,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:619) + (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 + +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: -role { "admin" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9861,27 +9871,26 @@ --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 + (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 calling `build_stubbed` with a block returns the stub instance passes the stub instance -callbacks using Symbol#to_proc - runs the callback correctly - -defaulting `updated_at` - defaults updated_at for objects with updated_at - doesn't allow setting updated_at on an object that doesn't define it - doesn't add updated_at to objects who don't have the method - allows overriding updated_at for objects with updated_at +callbacks + runs both the after(:build) and after(:create) callbacks when creating + runs both the after(:stub) callback on the factory and the inherited after(:stub) callback + runs the after(:build) callback when building + runs child callback after parent callback + runs the after(:stub) callback when stubbing -register custom strategies +build 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 { "Great" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9891,12 +9900,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:25) - allows overriding default strategies + (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 { "Great" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9906,12 +9916,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/build_list_spec.rb:7) + builds (but doesn't save) all the posts 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 { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9921,12 +9931,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: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/build_list_spec.rb:7) + uses the default factory values + 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 { "Great" } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9936,22 +9947,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:25) - allows adding additional strategies - -sequences - generates sequential numbers if no block is given - generates aliases for the sequence that reference the same block and retains value - generates few values of the sequence - generates aliases for the sequence that reference the same block - generates several values in the correct format - -declaring attributes on a Factory that are private methods on Object - sleep + (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 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 } +title { "Through the Looking Glass" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9961,11 +9963,17 @@ --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/build_list_spec.rb:7) + correctly uses the set value + +applying inline traits + applies traits only to the instance generated for that call + +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: -link { "http://example.com" } +name { "Great" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9975,11 +9983,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/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: -sleep { 15 } +name { "Sub" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -9989,13 +9997,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:9) - should eq -5 - system + (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: -system { false } +name { "Great" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10005,11 +10012,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/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: -link { "http://example.com" } +name { "Sub" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10019,11 +10026,14 @@ --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 (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 + +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: -sleep { 15 } +name { "Basic User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10033,13 +10043,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 (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: -system { false } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10049,11 +10057,14 @@ --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/parent_spec.rb:75) + honors :parent over the factory block nesting + +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: -link { "http://example.com" } +name { "Great" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10063,11 +10074,30 @@ --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/initialize_with_spec.rb:136) + instantiates the correct object + +a created instance + should not be new record + assigns and saves associations + +calling `attributes_for` with a block + passes the hash of attributes + returns the hash of attributes + +defaulting `created_at` + allows overriding created_at for objects with created_at + doesn't add created_at to objects who don't have the method + defaults created_at for objects with created_at + doesn't allow setting created_at on an object that doesn't define it + defaults created_at for objects with created_at to the correct time with zone + +`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: -sleep { 15 } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10077,14 +10107,21 @@ --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" + (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" -modifying inherited factories with traits +callbacks using Symbol#to_proc + runs the callback correctly + +assigning values from a transient attribute + does not ignore an _id attribute that is an alias for a transient attribute + +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: -gender { "Female" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10094,11 +10131,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:6) + (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: -gender { "Male" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10108,7 +10147,16 @@ --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/register_strategies_spec.rb:96) + uses the overridden strategy on the association + +sequences are evaluated in the correct context + invokes the correct method on the instance + builds a sequence calling sprintf correctly + allows direct reference of a method in a sequence + invokes a method with no arguments on the instance + +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: @@ -10122,11 +10170,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/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: -age { 17 } +name { "awesome" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10136,11 +10184,64 @@ --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/define_child_before_parent_spec.rb:11) + creates admin factories correctly + +global callbacks + triggers after build callbacks for all factories + +syntax methods within dynamic attributes + can access syntax methods from dynamic attributes + can access syntax methods from dynamic attributes + allows syntax methods to be used when the block has an arity of 1 + can access methods already existing on the class + +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 been enabled + assigns but does not save associations + when the :use_parent_strategy config option has not been set + assigns and saves associations + +calling methods on the model instance + with the referenced attribute being overridden + uses the overridden value + uses the overridden value during attributes_for + 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 + doesn't instantiate a record with attributes_for + returns nil during attributes_for + +sequences + generates several values in the correct format + generates aliases for the sequence that reference the same block + generates aliases for the sequence that reference the same block and retains value + generates few values of the sequence + generates sequential numbers if no block is given + +assigning overrides that are also private methods on object + more_format + should eq "format: Great" + y + should eq 12345 + format + should eq "Great" + some_funky_method + should eq "foobar!" + +an instance generated by a factory + registers the user factory + +an instance generated by a factory that inherits from another factory + 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: -gender { "Female" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10150,11 +10251,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/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: -age { 25 } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10164,11 +10265,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:19) + (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: -gender { "Male" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10178,11 +10279,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 (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: -age { 20 } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10192,12 +10293,12 @@ --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 + (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) 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: @@ -10207,11 +10308,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/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: -gender { "Male" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10221,7 +10322,7 @@ --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 (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: @@ -10235,11 +10336,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 (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: -age { 17 } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10249,11 +10350,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:11) + (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 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: @@ -10263,11 +10366,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/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: -age { 25 } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10277,11 +10380,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:19) + (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: -gender { "Male" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10291,12 +10394,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) - returns the correct value for overridden attributes from traits defining multiple attributes + (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: @@ -10306,11 +10408,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:6) + (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: -gender { "Male" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10320,11 +10424,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:7) + (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: @@ -10334,11 +10438,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 (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: -age { 17 } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10348,11 +10452,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/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: @@ -10362,11 +10466,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 (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: -age { 25 } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10376,11 +10482,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:19) + (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: -gender { "Male" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10390,18 +10496,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) - returns the correct value for overridden attributes from traits - -applying inline traits - applies traits only to the instance generated for that call - -build multiple instances - with a block + (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: -title { "Through the Looking Glass" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10411,13 +10510,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 - with default attributes + (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: -title { "Through the Looking Glass" } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10427,13 +10524,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) - overrides the default values - without default attributes + (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: -title { "Through the Looking Glass" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10443,12 +10541,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) - uses the default factory values + (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: -title { "Through the Looking Glass" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10458,13 +10555,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/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: -title { "Through the Looking Glass" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10474,15 +10569,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) - should eq 20 - -aliases and overrides - one + (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: -two { "set value" } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10492,13 +10583,14 @@ --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" - two + (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 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: -two { "set value" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10508,21 +10600,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 - -FactoryBot.rewind_sequences - resets all sequences back to their starting values - -a created instance - should not be new record - assigns and saves associations - -skipping the default create + (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: -email { "john@example.com" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10532,14 +10614,11 @@ --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 - -associations overriding :strategy + (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: @@ -10549,39 +10628,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 - -an instance generated by a factory named a camel case string - registers the UserModel factory - -defining methods inside FactoryBot - raises with a meaningful message - -assigning overrides that are also private methods on object - more_format - should eq "format: Great" - format - should eq "Great" - y - should eq 12345 - some_funky_method - should eq "foobar!" - -an instance generated by a factory with a custom class name - should be admin - should be a kind of User(id: integer, admin: boolean) - -an instance generated by a factory - registers the user factory - -attribute overrides - with no user posting - secure + (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: @@ -10591,11 +10642,13 @@ --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/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: -title { "default title" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10605,14 +10658,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 a non-admin posting - secure + (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: @@ -10622,11 +10672,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/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: -title { "default title" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10636,14 +10686,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 an admin posting - secure + (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: @@ -10653,11 +10700,13 @@ --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/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: -title { "default title" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10667,23 +10716,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 - -traits with initialize_with - gives additional traits higher priority than initialize_with from the definition - gives base traits normal priority - gives additional traits higher priority than base traits and factory definition - gives base traits lower priority than overrides - can apply initialize_with from traits - can apply initialize_with from the definition - -create multiple instances - with default attributes + (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: -title { "Through the Looking Glass" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10693,13 +10730,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 default attributes + (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: -title { "Through the Looking Glass" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10709,12 +10744,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) - creates all the posts + (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: -title { "Through the Looking Glass" } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10724,13 +10758,13 @@ --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 (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: -title { "Through the Looking Glass" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10740,13 +10774,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) - should eq 20 - without the count + (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: -title { "Through the Looking Glass" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10756,13 +10788,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) - raise ArgumentError with the proper error message - with a block + (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: -title { "Through the Looking Glass" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10772,27 +10802,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 - -calling methods on the model instance - without the attribute being overridden - doesn't instantiate a record with attributes_for - returns nil during attributes_for - returns the correct value from the instance - with the referenced attribute being overridden - uses the overridden value during attributes_for - uses the overridden value - with the attribute being overridden - uses the overridden value - uses the overridden value during attributes_for - -`attributes_for` for a class whose constructor has required params - [: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: -name { "John Doe" } +email { "" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10802,14 +10816,13 @@ --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" - -modifying factories + (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/parent_spec.rb:22) + 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: -admin { true } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10819,11 +10832,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: -admin { false } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10833,8 +10846,7 @@ --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 (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: @@ -10848,12 +10860,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) - raises an exception if the factory was not defined before + (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: @@ -10863,11 +10874,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 "John" + 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 { false } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10877,13 +10890,11 @@ --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 - simple modification + (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: @@ -10893,11 +10904,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: @@ -10907,12 +10918,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) - 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: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: @@ -10922,11 +10932,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 "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: -name { "Great User" } +name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10936,11 +10948,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) + (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 { "Overridden again!" } +name { "admin" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -10950,9 +10962,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:46) - does allow the factory to be subsequently modified - login + (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: @@ -10966,11 +10976,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: @@ -10980,9 +10990,10 @@ --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:22) + should eql "John-guest@example.com" + +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: @@ -11000,7 +11011,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" } +admin { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11010,12 +11021,8 @@ --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" - redefining attributes - creating user - overriding dynamic attributes - email + (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 DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block: @@ -11033,7 +11040,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" } +admin { false } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11043,8 +11050,26 @@ --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" + (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: + +admin { true } + +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 (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 + redefining attributes + creating user + 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: @@ -11075,7 +11100,6 @@ (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 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: @@ -11105,7 +11129,8 @@ --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" + should eq "perfect@example.com" + 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: @@ -11135,8 +11160,7 @@ --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" - without overrides + 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: @@ -11167,6 +11191,7 @@ (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 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: @@ -11196,10 +11221,8 @@ --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" - creating admin - overriding static attributes - name + 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: @@ -11228,7 +11251,9 @@ --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" + should eq "wonderful-modified@example.com" + creating admin + overriding static attributes 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: @@ -11289,8 +11314,7 @@ (called from block (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:101) should equal true - overriding dynamic attributes - 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: @@ -11319,8 +11343,9 @@ --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 + should eq "wonderful" + 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: @@ -11349,8 +11374,8 @@ --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 + should eq "Great User-modified@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: @@ -11379,9 +11404,8 @@ --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 - name + should eq "Great User" + 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: @@ -11410,7 +11434,8 @@ --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" + should equal true + 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: @@ -11470,9 +11495,8 @@ --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" - adding callbacks - name + should eq "perfect@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: @@ -11500,8 +11524,9 @@ --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" + (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" + adding callbacks 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: @@ -11532,8 +11557,7 @@ (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 + 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: @@ -11551,7 +11575,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 { "Johnny Rockstar!!!" } +name { "Great User" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11561,9 +11585,10 @@ --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 (5 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/modify_factories_spec.rb:58) + should eq "great user" + reusing traits + 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: @@ -11592,8 +11617,8 @@ --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!!!" - name + should eq "Johnny Rockstar!!!" + 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: @@ -11622,13 +11647,12 @@ --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!!!" - -nested factories with different parents + should eq "JOHNNY ROCKSTAR!!!" + 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 { "Basic User" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11638,11 +11662,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 (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 Doe" } +name { "Johnny Rockstar!!!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11652,14 +11676,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:75) - honors :parent over the factory block nesting - -initialize_with implicit constructor + (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" + 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 { "Great" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11669,31 +11692,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 - -static attribute deprecation warnings - an implicit attribute via method missing - prints where attribute is declared - using #add_attribute - prints where attribute is declared - -defaulting `created_at` - defaults created_at for objects with created_at to the correct time with zone - allows overriding created_at for objects with created_at - defaults created_at for objects with created_at - 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 - -initialize_with doesn't duplicate assignment on attributes accessed from initialize_with - instantiates the correct object - -traits added via strategy - adding traits in create + (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: @@ -11703,7 +11706,8 @@ --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/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: @@ -11717,13 +11721,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/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: @@ -11733,11 +11735,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 (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: -admin { true } +name { "Overridden again!" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11747,13 +11749,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 equal true + (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 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 { "John" } +admin { true } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11763,11 +11765,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 (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: @@ -11777,14 +11779,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 "JOE" - adding traits in attributes_for - [:admin] + (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" + 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: @@ -11794,11 +11795,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 (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: @@ -11808,13 +11809,17 @@ --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/modify_factories_spec.rb:28) + should eq "GREAT USER" + +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: -name { "John" } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11824,11 +11829,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:226) + (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 + +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: -admin { true } +value { 0 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11838,14 +11846,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:229) - should eq "John" - adding traits in build - admin + (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 + +a generated attributes hash where order matters + 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" } +static { 1 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11855,11 +11864,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 (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: -admin { true } +static { 1 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11869,13 +11878,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 equal true - name + (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 + 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 { "John" } +static { 1 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11885,11 +11894,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 (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: -admin { true } +static { 1 } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11899,28 +11908,34 @@ --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 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: + (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 -name { "John" } +traits with initialize_with + can apply initialize_with from traits + gives additional traits higher priority than base traits and factory definition + gives base traits normal priority + can apply initialize_with from the definition + gives base traits lower priority than overrides + gives additional traits higher priority than initialize_with from the definition -To automatically update from static attributes to dynamic ones, -install rubocop-rspec and run: +defining methods inside FactoryBot + raises with a meaningful message -rubocop \ - --require rubocop-rspec \ - --only FactoryBot/AttributeDefinedStatically \ - --auto-correct +traits with to_create + gives base traits lower priority than overrides + can apply to_create from traits + gives additional traits higher priority than to_create from the definition + gives base traits normal priority + can apply to_create from the definition + gives additional traits higher priority than base traits and factory definition - (called from block (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/traits_spec.rb:226) +attribute aliases + 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: -admin { true } +name { "John Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11930,13 +11945,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" - admin + (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 + 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: @@ -11946,11 +11961,27 @@ --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/attribute_aliases_spec.rb:12) + assigns attributes correctly + +defaulting `id` + allows overriding id + +calling `create` with a block + returns the created instance + passes the created instance + +FactoryBot.rewind_sequences + resets all sequences back to their starting values + +transient sequences + increments sequences correctly + +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: -admin { true } +first_name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11960,13 +11991,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 (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: -name { "John" } +last_name { "Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -11976,11 +12005,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 (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: @@ -11990,13 +12020,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 (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: -name { "John" } +last_name { "Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -12006,11 +12034,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 (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: -admin { true } +first_name { "John" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -12020,13 +12049,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 create_list + (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: -name { "John" } +last_name { "Doe" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -12036,11 +12063,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:226) + (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 + +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: -admin { true } +password { "foo" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -12050,13 +12080,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:229) - creates all the records - length + (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: -name { "John" } +password { "foo" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -12066,11 +12095,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 (4 levels) in at /build/ruby-factory-bot-4.11.1/spec/acceptance/definition_spec.rb:26) + assigns overridden value 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: @@ -12080,14 +12110,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:229) - should eq 2 + (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 -setting private attributes +a generated attributes hash + assigns a default value + doesn't assign associations + assigns an overridden value + assigns a lazy, dependent attribute + +a created instance, specifying strategy: :build + saves associations (strategy: :build only affects build, not 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: -foo { 123 } +name { "Great" } To automatically update from static attributes to dynamic ones, install rubocop-rspec and run: @@ -12097,16 +12136,13 @@ --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 - -a custom create - uses the custom create block instead of save + (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 -Finished in 7.14 seconds (files took 0.58692 seconds to load) +Finished in 1 minute 21.43 seconds (files took 2.1 seconds to load) 325 examples, 0 failures -Randomized with seed 40182 +Randomized with seed 8777 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -12137,13 +12173,14 @@ dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) -I: copying local configuration +I: user script /srv/workspace/pbuilder/6295/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/6295/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/41973 and its subdirectories -I: Current time: Mon Aug 9 12:47:08 -12 2021 -I: pbuilder-time-stamp: 1628556428 +I: removing directory /srv/workspace/pbuilder/6295 and its subdirectories +I: Current time: Wed Jul 8 08:38:20 +14 2020 +I: pbuilder-time-stamp: 1594147100