Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/r/ruby-factory-girl/ruby-factory-girl_4.7.0-2.1_all.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/ruby-factory-girl-4.7.0-2.1ke0kriuq/ruby-factory-girl_4.7.0-2.1_all.buildinfo Get source package info: ruby-factory-girl=4.7.0-2.1 Source URL: http://snapshot.notset.fr/mr/package/ruby-factory-girl/4.7.0-2.1/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=adduser=3.118 autoconf=2.69-14 automake=1:1.16.3-2 autopoint=0.21-3 autotools-dev=20180224.1+nmu1 base-files=11 base-passwd=3.5.48 bash=5.1-2 binutils=2.35.1-7 binutils-common=2.35.1-7 binutils-x86-64-linux-gnu=2.35.1-7 bsdextrautils=2.36.1-4 bsdutils=1:2.36.1-4 build-essential=12.9 bundler=2.2.0~rc.2-6 bzip2=1.0.8-4 ca-certificates=20200601 coreutils=8.32-4+b1 cpp=4:10.2.0-1 cpp-10=10.2.1-3 cucumber=2.4.0-4 dash=0.5.11+git20200708+dd9ef66-5 debconf=1.5.74 debhelper=13.3.1 debianutils=4.11.2 devscripts=2.20.5 dh-autoreconf=19 dh-strip-nondeterminism=1.9.0-1 diffutils=1:3.7-5 dirmngr=2.2.20-1 dpkg=1.20.5 dpkg-dev=1.20.5 dwz=0.13+20201015-2 fakeroot=1.25.3-1.1 file=1:5.39-3 findutils=4.7.0+git20201010-2 g++=4:10.2.0-1 g++-10=10.2.1-3 gcc=4:10.2.0-1 gcc-10=10.2.1-3 gcc-10-base=10.2.1-3 gem2deb=1.4 gem2deb-test-runner=1.4 gettext=0.21-3 gettext-base=0.21-3 gnupg=2.2.20-1 gnupg-l10n=2.2.20-1 gnupg-utils=2.2.20-1 gpg=2.2.20-1 gpg-agent=2.2.20-1 gpg-wks-client=2.2.20-1 gpg-wks-server=2.2.20-1 gpgconf=2.2.20-1 gpgsm=2.2.20-1 gpgv=2.2.20-1 grep=3.6-1 groff-base=1.22.4-5 gzip=1.10-2 hostname=3.23 init-system-helpers=1.60 intltool-debian=0.35.0+20060710.5 libacl1=2.2.53-9 libarchive-zip-perl=1.68-1 libasan6=10.2.1-3 libassuan0=2.5.3-7.1 libatomic1=10.2.1-3 libattr1=1:2.4.48-6 libaudit-common=1:3.0-2 libaudit1=1:3.0-2 libb-hooks-op-check-perl=0.22-1+b3 libbinutils=2.35.1-7 libblkid1=2.36.1-4 libbz2-1.0=1.0.8-4 libc-bin=2.31-9 libc-dev-bin=2.31-9 libc6=2.31-9 libc6-dev=2.31-9 libcap-ng0=0.7.9-2.2+b1 libcc1-0=10.2.1-3 libclass-method-modifiers-perl=2.13-1 libcom-err2=1.45.6-1 libcrypt-dev=1:4.4.17-1 libcrypt1=1:4.4.17-1 libctf-nobfd0=2.35.1-7 libctf0=2.35.1-7 libdb5.3=5.3.28+dfsg1-0.6 libdebconfclient0=0.256 libdebhelper-perl=13.3.1 libdevel-callchecker-perl=0.008-1+b2 libdpkg-perl=1.20.5 libdynaloader-functions-perl=0.003-1.1 libelf1=0.182-3 libencode-locale-perl=1.05-1.1 libexpat1=2.2.10-1 libfakeroot=1.25.3-1.1 libffi7=3.3-5 libfile-dirlist-perl=0.05-2 libfile-homedir-perl=1.006-1 libfile-listing-perl=6.14-1 libfile-stripnondeterminism-perl=1.9.0-1 libfile-touch-perl=0.11-1 libfile-which-perl=1.23-1 libgcc-10-dev=10.2.1-3 libgcc-s1=10.2.1-3 libgcrypt20=1.8.7-2 libgdbm-compat4=1.18.1-5.1 libgdbm6=1.18.1-5.1 libgmp-dev=2:6.2.1+dfsg-1 libgmp10=2:6.2.1+dfsg-1 libgmpxx4ldbl=2:6.2.1+dfsg-1 libgnutls30=3.7.0-5 libgomp1=10.2.1-3 libgpg-error0=1.38-2 libgssapi-krb5-2=1.18.3-4 libhogweed6=3.6-2 libhtml-parser-perl=3.75-1+b1 libhtml-tagset-perl=3.20-4 libhtml-tree-perl=5.07-2 libhttp-cookies-perl=6.10-1 libhttp-date-perl=6.05-1 libhttp-message-perl=6.27-1 libhttp-negotiate-perl=6.01-1 libicu67=67.1-5 libidn2-0=2.3.0-4 libimport-into-perl=1.002005-1 libio-html-perl=1.001-1.1 libio-pty-perl=1:1.15-2 libio-socket-ssl-perl=2.068-1 libipc-run-perl=20200505.0-1 libisl23=0.23-1 libitm1=10.2.1-3 libjs-jquery=3.5.1+dfsg+~3.5.5-5 libk5crypto3=1.18.3-4 libkeyutils1=1.6.1-2 libkrb5-3=1.18.3-4 libkrb5support0=1.18.3-4 libksba8=1.5.0-3 libldap-2.4-2=2.4.56+dfsg-1 liblsan0=10.2.1-3 liblwp-mediatypes-perl=6.04-1 liblwp-protocol-https-perl=6.10-1 liblz4-1=1.9.3-1 liblzma5=5.2.5-1.0 libmagic-mgc=1:5.39-3 libmagic1=1:5.39-3 libmodule-runtime-perl=0.016-1 libmoo-perl=2.004004-1 libmount1=2.36.1-4 libmpc3=1.2.0-1 libmpfr6=4.1.0-3 libncursesw6=6.2+20201114-2 libnet-http-perl=6.19-1 libnet-ssleay-perl=1.88-3+b1 libnettle8=3.6-2 libnpth0=1.6-3 libnsl-dev=1.3.0-2 libnsl2=1.3.0-2 libp11-kit0=0.23.22-1 libpam-modules=1.4.0-2 libpam-modules-bin=1.4.0-2 libpam-runtime=1.4.0-2 libpam0g=1.4.0-2 libparams-classify-perl=0.015-1+b3 libpcre2-8-0=10.36-2 libpcre3=2:8.39-13 libperl5.32=5.32.0-6 libpipeline1=1.5.3-1 libpython3-stdlib=3.9.1-1 libpython3.9-minimal=3.9.1-1 libpython3.9-stdlib=3.9.1-1 libquadmath0=10.2.1-3 libreadline8=8.1-1 librole-tiny-perl=2.001004-1 libruby2.7=2.7.2-3 libsasl2-2=2.1.27+dfsg-2 libsasl2-modules-db=2.1.27+dfsg-2 libseccomp2=2.5.1-1 libselinux1=3.1-2+b2 libsemanage-common=3.1-1 libsemanage1=3.1-1+b2 libsepol1=3.1-1 libsigsegv2=2.12-3 libsmartcols1=2.36.1-4 libsqlite3-0=3.34.0-1 libssl1.1=1.1.1i-1 libstdc++-10-dev=10.2.1-3 libstdc++6=10.2.1-3 libstrictures-perl=2.000006-1 libsub-override-perl=0.09-2 libsub-quote-perl=2.006006-1 libsystemd0=247.2-4 libtasn1-6=4.16.0-2 libtimedate-perl=2.3300-1 libtinfo6=6.2+20201114-2 libtirpc-common=1.3.1-1 libtirpc-dev=1.3.1-1 libtirpc3=1.3.1-1 libtool=2.4.6-14 libtry-tiny-perl=0.30-1 libtsan0=10.2.1-3 libubsan1=10.2.1-3 libuchardet0=0.0.7-1 libudev1=247.2-4 libunistring2=0.9.10-4 liburi-perl=5.05-1 libuuid1=2.36.1-4 libwww-perl=6.51-1 libwww-robotrules-perl=6.02-1 libxml2=2.9.10+dfsg-6.3+b1 libyaml-0-2=0.2.2-1 libzstd1=1.4.8+dfsg-1 linux-libc-dev=5.10.4-1 login=1:4.8.1-1 lsb-base=11.1.0 m4=1.4.18-5 mailcap=3.68 make=4.3-4 man-db=2.9.3-2 mawk=1.3.4.20200120-2 media-types=3.0.0 mime-support=3.66 ncurses-base=6.2+20201114-2 ncurses-bin=6.2+20201114-2 netbase=6.2 openssl=1.1.1i-1 passwd=1:4.8.1-1 patch=2.7.6-6 patchutils=0.4.2-1 perl=5.32.0-6 perl-base=5.32.0-6 perl-modules-5.32=5.32.0-6 perl-openssl-defaults=5 pinentry-curses=1.1.0-4 po-debconf=1.0.21+nmu1 python3=3.9.1-1 python3-minimal=3.9.1-1 python3.9=3.9.1-1 python3.9-minimal=3.9.1-1 rake=13.0.1-4 readline-common=8.1-1 ruby=1:2.7+2 ruby-activemodel=2:6.0.3.4+dfsg-2 ruby-activerecord=2:6.0.3.4+dfsg-2 ruby-activesupport=2:6.0.3.4+dfsg-2 ruby-all-dev=1:2.7+2 ruby-appraisal=0.5.1-2 ruby-aruba=1.0.3-1 ruby-atomic=1.1.16-3+b1 ruby-bourne=1.6.0-2 ruby-builder=3.2.4-1 ruby-bundler=2.2.0~rc.2-6 ruby-childprocess=4.0.0-1 ruby-concurrent=1.1.6+dfsg-3 ruby-contracts=0.16.0-1 ruby-cucumber-core=1.5.0-2 ruby-cucumber-wire=0.0.1-3 ruby-diff-lcs=1.4.4-1 ruby-ffi=1.12.2+dfsg-2+b3 ruby-gherkin=4.0.0-2 ruby-i18n=1.8.5-1 ruby-metaclass=0.0.4-1.1 ruby-minitest=5.13.0-1 ruby-mocha=1.7.0-1 ruby-multi-json=1.14.1-1 ruby-multi-test=0.1.2-1 ruby-net-telnet=0.1.1-2 ruby-power-assert=1.1.7-1 ruby-rspec=3.9.0c2e2m1s3-1 ruby-rspec-core=3.9.0c2e2m1s3-1 ruby-rspec-expectations=3.9.0c2e2m1s3-1 ruby-rspec-its=1.3.0-1 ruby-rspec-mocks=3.9.0c2e2m1s3-1 ruby-rspec-support=3.9.0c2e2m1s3-1 ruby-rubygems=3.2.0~rc.2-6 ruby-sqlite3=1.4.2-2+b3 ruby-test-unit=3.3.5-1 ruby-thor=0.20.3-2 ruby-thread-safe=0.3.6-1 ruby-timecop=0.9.1-1 ruby-tzinfo=1.2.6-1 ruby-xmlrpc=0.3.0-2 ruby-zeitwerk=2.4.2-1 ruby2.7=2.7.2-3 ruby2.7-dev=2.7.2-3 rubygems-integration=1.17.3 sed=4.7-1 sensible-utils=0.0.12+nmu1 sysvinit-utils=2.96-5 tar=1.32+dfsg-1 tzdata=2020f-1 util-linux=2.36.1-4 wdiff=1.2.2-2+b1 xz-utils=5.2.5-1.0 zlib1g=1:1.2.11.dfsg-2 --variant=apt --aptopt=Acquire::Check-Valid-Until "false" --aptopt=Acquire::http::Dl-Limit "1000"; --aptopt=Acquire::https::Dl-Limit "1000"; --aptopt=Acquire::Retries "5"; --aptopt=APT::Get::allow-downgrades "true"; --keyring=/usr/share/keyrings/ --essential-hook=chroot "$1" sh -c "apt-get --yes install fakeroot util-linux" --essential-hook=copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ --essential-hook=chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20210108T025743Z/ unstable main' >> /etc/apt/sources.list && apt-get update" --customize-hook=chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash --customize-hook=chroot "$1" env sh -c "apt-get source --only-source -d ruby-factory-girl=4.7.0-2.1 && mkdir -p /build/ruby-factory-girl-Xy0SL5 && dpkg-source --no-check -x /*.dsc /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0 && chown -R builduser:builduser /build/ruby-factory-girl-Xy0SL5" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1610070051" dpkg-buildpackage -uc -a amd64 --build=all" --customize-hook=sync-out /build/ruby-factory-girl-Xy0SL5 /tmp/ruby-factory-girl-4.7.0-2.1ke0kriuq bullseye /dev/null deb http://snapshot.notset.fr/archive/debian/20210108T025743Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: tar I: using /tmp/mmdebstrap.EnHgvsBEoG as tempdir I: running apt-get update... I: downloading packages with apt... I: extracting archives... I: installing essential packages... I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "apt-get --yes install fakeroot util-linux"' exec /tmp/mmdebstrap.EnHgvsBEoG Reading package lists... Building dependency tree... util-linux is already the newest version (2.36.1-4). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 134 kB of archives. After this operation, 397 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20210108T025743Z unstable/main amd64 libfakeroot amd64 1.25.3-1.1 [47.0 kB] Get:2 http://snapshot.notset.fr/archive/debian/20210108T025743Z unstable/main amd64 fakeroot amd64 1.25.3-1.1 [87.0 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 134 kB in 0s (1051 kB/s) Selecting previously unselected package libfakeroot:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 4647 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.25.3-1.1_amd64.deb ... Unpacking libfakeroot:amd64 (1.25.3-1.1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.25.3-1.1_amd64.deb ... Unpacking fakeroot (1.25.3-1.1) ... Setting up libfakeroot:amd64 (1.25.3-1.1) ... Setting up fakeroot (1.25.3-1.1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.31-9) ... I: running special hook: copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20210108T025743Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.EnHgvsBEoG Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20210108T025743Z unstable InRelease Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources [11.4 MB] Get:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages [11.1 MB] Fetched 22.6 MB in 22s (1031 kB/s) Reading package lists... I: installing remaining packages inside the chroot... I: running --customize-hook in shell: sh -c 'chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash' exec /tmp/mmdebstrap.EnHgvsBEoG I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d ruby-factory-girl=4.7.0-2.1 && mkdir -p /build/ruby-factory-girl-Xy0SL5 && dpkg-source --no-check -x /*.dsc /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0 && chown -R builduser:builduser /build/ruby-factory-girl-Xy0SL5"' exec /tmp/mmdebstrap.EnHgvsBEoG Reading package lists... NOTICE: 'ruby-factory-girl' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/ruby-team/ruby-factory-girl.git Please use: git clone https://salsa.debian.org/ruby-team/ruby-factory-girl.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 70.2 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main ruby-factory-girl 4.7.0-2.1 (dsc) [2234 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main ruby-factory-girl 4.7.0-2.1 (tar) [64.4 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main ruby-factory-girl 4.7.0-2.1 (diff) [3600 B] Fetched 70.2 kB in 0s (945 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'ruby-factory-girl_4.7.0-2.1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting ruby-factory-girl in /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0 dpkg-source: info: unpacking ruby-factory-girl_4.7.0.orig.tar.gz dpkg-source: info: unpacking ruby-factory-girl_4.7.0-2.1.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying remove-simplecov-rubygems-require.patch dpkg-source: info: applying 0002-Fix-failing-tests.patch I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1610070051" dpkg-buildpackage -uc -a amd64 --build=all"' exec /tmp/mmdebstrap.EnHgvsBEoG dpkg-buildpackage: info: source package ruby-factory-girl dpkg-buildpackage: info: source version 4.7.0-2.1 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Holger Levsen dpkg-source --before-build . fakeroot debian/rules clean dh_clean rm -f spec/support/macros/test.db debian/rules build-indep dh build-indep --buildsystem=ruby --with ruby dh_update_autotools_config -i -O--buildsystem=ruby dh_autoreconf -i -O--buildsystem=ruby dh_auto_configure -i -O--buildsystem=ruby dh_ruby --configure dh_auto_build -i -O--buildsystem=ruby dh_ruby --build dh_ruby --build dh_auto_test -i -O--buildsystem=ruby dh_ruby --test create-stamp debian/debhelper-build-stamp fakeroot debian/rules binary-indep dh binary-indep --buildsystem=ruby --with ruby dh_testroot -i -O--buildsystem=ruby dh_prep -i -O--buildsystem=ruby dh_auto_install -i -O--buildsystem=ruby dh_ruby --install /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl dh_ruby --install ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install files │ └──────────────────────────────────────────────────────────────────────────────┘ install -d /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/declaration_list.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/declaration_list.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/sequence.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/sequence.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/configuration.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/configuration.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/evaluation.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/evaluation.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/strategy_syntax_method_registrar.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/strategy_syntax_method_registrar.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/syntax.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/syntax.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/attribute/sequence.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/attribute/sequence.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/attribute/association.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/attribute/association.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/attribute/static.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/attribute/static.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/attribute/dynamic.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/attribute/dynamic.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/attribute_list.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/attribute_list.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/find_definitions.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/find_definitions.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/version.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/version.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/strategy/create.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/strategy/create.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/strategy/null.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/strategy/null.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/strategy/attributes_for.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/strategy/attributes_for.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/strategy/build.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/strategy/build.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/strategy/stub.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/strategy/stub.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/linter.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/linter.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/registry.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/registry.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/aliases.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/aliases.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/factory.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/factory.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/evaluator_class_definer.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/evaluator_class_definer.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/declaration.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/declaration.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/reload.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/reload.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/evaluator.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/evaluator.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/attribute.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/attribute.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/callbacks_observer.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/callbacks_observer.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/strategy_calculator.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/strategy_calculator.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/errors.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/errors.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/decorator.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/decorator.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/null_object.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/null_object.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/syntax/default.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/syntax/default.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/syntax/methods.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/syntax/methods.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/attribute_assigner.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/attribute_assigner.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/syntax_runner.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/syntax_runner.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/decorator/class_key_hash.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/decorator/class_key_hash.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/decorator/invocation_tracker.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/decorator/invocation_tracker.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/decorator/attribute_hash.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/decorator/attribute_hash.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/decorator/disallows_duplicates_registry.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/decorator/disallows_duplicates_registry.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/decorator/new_constructor.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/decorator/new_constructor.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/definition_hierarchy.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/definition_hierarchy.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/null_factory.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/null_factory.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/trait.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/trait.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/definition_proxy.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/definition_proxy.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/declaration/association.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/declaration/association.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/declaration/static.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/declaration/static.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/declaration/dynamic.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/declaration/dynamic.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/declaration/implicit.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/declaration/implicit.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/callback.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/callback.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/factory_runner.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/factory_runner.rb install -D -m644 /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/lib/factory_girl/definition.rb /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby/factory_girl/definition.rb ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install Rubygems integration metadata │ └──────────────────────────────────────────────────────────────────────────────┘ generating gemspec at /build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/share/rubygems-integration/all/specifications/factory_girl-4.7.0.gemspec /usr/bin/ruby2.7 /usr/bin/gem2deb-test-runner ┌──────────────────────────────────────────────────────────────────────────────┐ │ Checking Rubygems dependency resolution on ruby2.7 │ └──────────────────────────────────────────────────────────────────────────────┘ GEM_PATH=/build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/share/rubygems-integration/all:/var/lib/gems/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/lib/x86_64-linux-gnu/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0 ruby2.7 -e gem\ \"factory_girl\" ┌──────────────────────────────────────────────────────────────────────────────┐ │ Run tests for ruby2.7 from debian/ruby-tests.rake │ └──────────────────────────────────────────────────────────────────────────────┘ RUBYLIB=/build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/lib/ruby/vendor_ruby:. GEM_PATH=/build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0/debian/ruby-factory-girl/usr/share/rubygems-integration/all:/var/lib/gems/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/lib/x86_64-linux-gnu/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0 ruby2.7 -S rake -f debian/ruby-tests.rake /usr/bin/ruby2.7 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation using ActiveSupport::Instrumentation to track factory interaction tracks proper time of creating the record builds the correct payload aliases and overrides one is expected to eq "override" two is expected to be nil attribute aliases assigning an association by foreign key doesn't assign both an association and its foreign key assigning an association by passing factory assigns attributes correctly declaring attributes on a Factory that are private methods on Object system is expected to eq false link is expected to eq "http://example.com" sleep is expected to eq -5 assigning overrides that are also private methods on object format is expected to eq "Great" y is expected to eq 12345 more_format is expected to eq "format: Great" some_funky_method is expected to eq "foobar!" accessing methods from the instance within a dynamic attribute that is also a private method on object more_format is expected to eq "format: This is an awesome format" a generated attributes hash assigns an overridden value assigns a default value assigns a lazy, dependent attribute doesn't assign associations calling `attributes_for` with a block passes the hash of attributes returns the hash of attributes `attributes_for` for a class whose constructor has required params [:name] is expected to eq "John Doe" calling methods on the model instance without the attribute being overridden returns the correct value from the instance returns nil during attributes_for doesn't instantiate a record with attributes_for with the attribute being overridden uses the overridden value uses the overridden value during attributes_for with the referenced attribute being overridden uses the overridden value uses the overridden value during attributes_for a generated attributes hash where order matters factory with a parent assigns attributes in the order they're defined with preference to static attributes factory without a parent assigns attributes in the order they're defined with preference to static attributes without a parent class build multiple instances without default attributes builds (but doesn't save) all the posts uses the default factory values length is expected to eq 20 with default attributes overrides the default values with a block correctly uses the set value a built instance is expected to be new record assigns and saves associations a built instance with strategy: :build is expected to be new record assigns but does not save associations calling `build` with a block passes the built instance returns the built instance a generated stub instance assigns a default attribute assigns an overridden attribute assigns associations has an id generates unique ids isn't a new record isn't changed disables connection disables update_attribute disables reload disables destroy disables save disables increment disables decrement calling `build_stubbed` with a block passes the stub instance returns the stub instance defaulting `created_at` defaults created_at for objects with created_at defaults created_at for objects with created_at to the correct time with zone adds created_at to objects who don't have the method allows overriding created_at for objects with created_at doesn't allow setting created_at on an object that doesn't define it defaulting `id` allows overriding id callbacks runs the after(:stub) callback when stubbing runs the after(:build) callback when building 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 child callback after parent callback callbacks using Symbol#to_proc runs the callback correctly callbacks using syntax methods without referencing FactoryGirl explicitly works when the callback has no variables works when the callback has one variable works when the callback has two variables custom callbacks runs a custom before callback when the proper strategy executes runs a custom after callback when the proper strategy executes runs a custom callback without prepending before or after when the proper strategy executes binding a callback to multiple callbacks binds the callback to creation does not bind the callback to building binds the callback to stubbing global callbacks triggers after build callbacks for all factories create multiple instances without default attributes creates all the posts uses the default factory values length is expected to eq 20 with default attributes overrides the default values with a block uses the new values multiple creates and transient attributes to dynamically build attribute lists generates the correct number of posts allows the number of posts to be modified create multiple instances without default attributes creates all the posts uses the default factory values length is expected to eq 2 a created instance is expected not to be new record assigns and saves associations a created instance, specifying strategy: :build saves associations (strategy: :build only affects build, not create) a custom create uses the custom create block instead of save calling `create` with a block passes the created instance returns the created instance defining a child factory before a parent creates admin factories correctly defining methods inside FactoryGirl raises with a meaningful message an instance generated by a factory named a camel case string registers the UserModel factory an instance generated by a factory with a custom class name is expected to be a kind of User(id: integer, admin: boolean) is expected to be admin attributes defined using Symbol#to_proc assigns values correctly assigns value with override correctly assigns overridden value correctly an instance generated by a factory registers the user factory global initialize_with handles base initialize_with handles child initialize_with handles child initialize_with with trait handles inline trait override uses initialize_with globally across FactoryGirl.define global to_create handles base to_create handles child to_create handles child to_create with trait handles inline trait override uses to_create globally across FactoryGirl.define global skip_create does not persist any record does not persist child records honors overridden to_create honors inline trait to_create initialize_with with non-FG attributes name is expected to eq "John Doe" age is expected to eq 21 initialize_with with FG attributes that are transient name is expected to eq "Handsome Chap from .construct" initialize_with non-ORM-backed objects allows for overrides generates random data initialize_with parent and child factories uses the parent's constructor when the child factory doesn't assign it allows child factories to override initialize_with initialize_with implicit constructor instantiates the correct object initialize_with doesn't duplicate assignment on attributes accessed from initialize_with instantiates the correct object initialize_with has access to all attributes for construction assigns attributes correctly initialize_with for a constructor that requires a block executes the block 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 doesn't find the factory FactoryGirl.lint raises when a factory is invalid does not raise when all factories are valid allows for selective linting allows for explicit factories and additional options allows for additional options without explicit factories trait validation enabled raises if a trait produces an invalid object does not raise if a trait produces a valid object disabled does not raises if a trait produces an invalid object modifying factories doesn't overwrite already defined child's attributes allows for overriding child classes raises an exception if the factory was not defined before simple modification doesn't allow the factory to be subsequently defined does allow the factory to be subsequently modified name is expected to eq "Great User" login is expected to eq "GREAT USER" adding callbacks name is expected to eq "great user" login is expected to be nil reusing traits name is expected to eq "Johnny Rockstar!!!" email is expected to eq "Johnny Rockstar!!!@example.com" login is expected to eq "JOHNNY ROCKSTAR!!!" redefining attributes creating user without overrides name is expected to eq "Great User" email is expected to eq "Great User-modified@example.com" overriding dynamic attributes name is expected to eq "Great User" email is expected to eq "perfect@example.com" overriding static attributes name is expected to eq "wonderful" email is expected to eq "wonderful-modified@example.com" creating admin without overrides name is expected to eq "Great User" email is expected to eq "Great User-modified@example.com" admin is expected to equal true overriding dynamic attributes name is expected to eq "Great User" email is expected to eq "perfect@example.com" admin is expected to equal true overriding static attributes name is expected to eq "wonderful" email is expected to eq "wonderful-modified@example.com" admin is expected to equal true modifying inherited factories with traits returns the correct value for overridden attributes from traits returns the correct value for overridden attributes from traits defining multiple attributes allows modification of attributes created via traits association assignment from nested attributes assigns the correct amount of comments assigns the correct amount of comments when overridden attribute overrides with an admin posting secure is expected to eq false with a non-admin posting secure is expected to be nil with no user posting secure is expected to be nil an instance generated by a factory that inherits from another factory the parent class is expected not to be admin email is expected to eq "john@example.com" the child class redefining parent's static method used by a dynamic method is expected to be a kind of User(id: integer, name: string, admin: boolean, email: string, upper_email: string, login: string) is expected to be admin name is expected to eq "admin" email is expected to eq "admin@example.com" upper_email is expected to eq "ADMIN@EXAMPLE.COM" the child class redefining parent's dynamic method is expected not to be admin name is expected to eq "John" email is expected to eql "John-guest@example.com" login is expected to eq "John-guest@example.com" the child class redefining parent's dynamic attribute with static attribute email is expected to eq "" the child class redefining parent's static attribute with dynamic attribute name is expected to eq "Bill" nested factories with different parents honors :parent over the factory block nesting setting private attributes raises a NoMethodError register custom strategies allows overriding default strategies allows adding additional strategies allows using the *_list method to build a list using a custom strategy allows using the *_pair method to build a list using a custom strategy including FactoryGirl::Syntax::Methods when custom strategies have been declared allows adding additional strategies associations without overriding :strategy uses the overridden create strategy to create the association associations overriding :strategy uses the overridden create strategy to create the association 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 sequences generates several values in the correct format generates sequential numbers if no block is given generates aliases for the sequence that reference the same block generates aliases for the sequence that reference the same block and retains value skipping the default create doesn't execute anything when creating the instance a stubbed instance acts as if it came from the database assigns associations and acts as if it is saved a stubbed instance overriding strategy acts as if it is saved in the database assigns associations and acts as if it is saved syntax methods within dynamic attributes can access syntax methods from dynamic attributes can access syntax methods from dynamic attributes can access methods already existing on the class allows syntax methods to be used when the block has an arity of 1 an instance generated by a factory with multiple traits the parent class is expected not to be admin name is expected to eq "John" gender is expected to be nil the child class with one trait is expected to be admin name is expected to eq "John" gender is expected to be nil the other child class with one trait is expected not to be admin name is expected to eq "Jane" gender is expected to eq "Female" the child with multiple traits is expected to be admin name is expected to eq "Jane" gender is expected to eq "Female" the child with multiple traits and overridden attributes is expected to be admin name is expected to eq "Jill" gender is expected to be nil the child with multiple traits who override the same attribute when the male assigns name after female is expected to be admin name is expected to eq "Joe" gender is expected to eq "Male" when the female assigns name after male is expected to be admin name is expected to eq "Jane" gender is expected to eq "Female" child class with scoped trait and inherited trait is expected to be admin name is expected to eq "Judy" gender is expected to eq "Female" factory using global trait name is expected to eq "Bill" email is expected to eq "Bill@example.com" factory created with alternate syntax for specifying trait gender is expected to eq "Male" factory created with alternate syntax where trait name and attribute are the same great is expected to eq "GREAT!!!" factory created with alternate syntax where trait name and attribute are the same and attribute is overridden great is expected to eq "SORT OF!!!" child factory created where trait attributes are inherited gender is expected to eq "Male" date_of_birth is expected to eq Sat, 01 Jan 2000 factory outside of scope is expected to raise ArgumentError with "Trait not registered: admin_trait" child factory using grandparents' trait great is expected to eq "GREAT!!!" traits with callbacks executes callbacks in the order assigned when the factory has a trait passed via arguments name is expected to eq "JOHN" when the factory has an implicit trait name is expected to eq "JOHN" traits added via strategy adding traits in create doesn't modify the user factory admin is expected to equal true name is expected to eq "JOE" adding traits in build admin is expected to equal true name is expected to eq "Joe" adding traits in attributes_for [:admin] is expected to equal true [:name] is expected to eq "John" adding traits in build_stubbed admin is expected to equal true name is expected to eq "Jack" adding traits in create_list creates all the records length is expected to eq 2 adding traits in build_list builds all the records length is expected to eq 2 traits and dynamic attributes that are applied simultaneously name is expected to eq "John" email is expected to eq "John@example.com" combined is expected to eq "John " applying inline traits applies traits only to the instance generated for that call inline traits overriding existing attributes returns the default status prefers inline trait attributes over default attributes prefers traits on a factory over default attributes prefers inline trait attributes over traits on a factory prefers attributes on factories over attributes from non-inline traits prefers inline traits over attributes on factories prefers overridden attributes over attributes from traits, inline traits, or attributes on factories making sure the factory is properly compiled the first time we want to instantiate it can honor traits on the very first call traits with to_create can apply to_create from traits can apply to_create from the definition gives additional traits higher priority than to_create from the definition gives base traits normal priority gives base traits lower priority than overrides gives additional traits higher priority than base traits and factory definition traits with initialize_with can apply initialize_with from traits can apply initialize_with from the definition gives additional traits higher priority than initialize_with from the definition gives base traits normal priority gives base traits lower priority than overrides gives additional traits higher priority than base traits and factory definition nested implicit traits defined outside the factory it should behave like assigning data from traits assigns the correct values defined inside the factory it should behave like assigning data from traits assigns the correct values implicit traits containing callbacks only runs the callback once traits used in associations allows assigning traits for the factory of an association allows inline traits with the default association allows inline traits with a specific factory for an association transient attributes returning attributes for a factory is expected not to have key :four is expected not to have key :rockstar is expected not to have key :upcased is expected to have key :name is expected to have key :email with a transient variable assigned generates the correct attributes on a rockstar generates the correct attributes on an upcased rockstar generates the correct attributes on a groupie generates the correct attributes on a rockstar with a name without transient variables assigned uses the default value of the attribute using aliased 'ignore' method name uses the default value of the attribute transient sequences increments sequences correctly assigning values from a transient attribute does not ignore an _id attribute that is an alias for a transient attribute FactoryGirl aliases aliases for an attribute is expected to include :test is expected to include :test_id aliases for a foreign key is expected to include :test is expected to include :test_id aliases for an attribute starting with an underscore is expected not to include :id FactoryGirl after defining an alias is expected to include :test is expected to include :test_suffix_id FactoryGirl::Attribute::Association is expected to be association builds the association when calling the proc builds the association when calling the proc name is expected to eq :author FactoryGirl::Attribute::Association with a string name name is expected to eq :name FactoryGirl::Attribute::Dynamic name is expected to eq :first_name with a block returning a static value returns the value when executing the proc with a block returning its block-level variable returns self when executing the proc with a block referencing an attribute on the attribute evaluates the attribute from the attribute with a block returning a sequence raises a sequence abuse error FactoryGirl::Attribute::Dynamic with a string name name is expected to eq :name FactoryGirl::Attribute::Sequence assigns the next value in the sequence name is expected to eq :first_name FactoryGirl::Attribute::Static returns the value when executing the proc name is expected to eq :first_name FactoryGirl::Attribute::Static with a string name name is expected to eq :name FactoryGirl::AttributeList#define_attribute maintains a list of attributes returns the attribute raises if an attribute has already been defined FactoryGirl::AttributeList#define_attribute with a named attribute list raises when the attribute is a self-referencing association does not raise when the attribute is not a self-referencing association FactoryGirl::AttributeList#apply_attributes adds attributes in the order defined regardless of attribute type FactoryGirl::AttributeList#associations returns associations FactoryGirl::AttributeList filter based on ignored attributes filters #ignored attributes filters #non_ignored attributes FactoryGirl::AttributeList generating names knows all its #names knows all its #names for #ignored attributes knows all its #names for #non_ignored attributes knows all its #names for #associations FactoryGirl::Attribute is expected not to be association raises an error when defining an attribute writer name is expected to eq :user FactoryGirl::Callback has a name converts strings to symbols runs its block with no parameters runs its block with one parameter runs its block with two parameters allows valid callback names to be assigned raises if an invalid callback name is assigned FactoryGirl::Declaration::Implicit with a known factory is expected to be association factory is expected to eq :author with a known sequence is expected not to be association is expected to be a kind of FactoryGirl::Attribute::Sequence FactoryGirl::DeclarationList#attributes returns an AttributeList defines each attribute on the attribute list FactoryGirl::DeclarationList#declare_attribute when not overridable adds the declaration to the list when overridable adds the declaration to the list deletes declarations with the same name FactoryGirl::DefinitionProxy#add_attribute raises if both a block and value are given declares a static attribute on the factory declares a dynamic attribute on the factory FactoryGirl::DefinitionProxy#add_attribute when the proxy ignores attributes raises if both a block and value are given declares a static attribute on the factory declares a dynamic attribute on the factory FactoryGirl::DefinitionProxy#transient makes all attributes added ignored FactoryGirl::DefinitionProxy#method_missing declares an implicit declaration without args or a block declares an association when :factory is passed declares a static attribute declares a dynamic attribute FactoryGirl::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 FactoryGirl::DefinitionProxy#association declares an association declares an association with options FactoryGirl::DefinitionProxy adding callbacks #after(:build) is expected to have callback :after_build #after(:create) is expected to have callback :after_create #after(:stub) is expected to have callback :after_stub #after(:stub, :create) is expected to have callback :after_stub is expected to have callback :after_create #before(:stub, :create) is expected to have callback :before_stub is expected to have callback :before_create #callback(:after_stub, :before_create) is expected to have callback :after_stub is expected to have callback :before_create FactoryGirl::DefinitionProxy#to_create accepts a block to run in place of #save! FactoryGirl::DefinitionProxy#factory without options with options with a block FactoryGirl::DefinitionProxy#trait declares a trait FactoryGirl::DefinitionProxy#initialize_with defines the constructor on the definition FactoryGirl::Definition is expected to delegate :declare_attribute FactoryGirl::Definition with a name creates a new attribute list with the name passed FactoryGirl::Definition#overridable sets the declaration list as overridable FactoryGirl::Definition defining traits maintains a list of traits adds only unique traits FactoryGirl::Definition adding callbacks maintains a list of callbacks FactoryGirl::Definition#to_create returns the assigned value when given a block to_create is expected to be nil FactoryGirl::Decorator::DisallowsDuplicatesRegistry delegates #register to the registry when not registered raises when attempting to #register a previously registered strategy FactoryGirl::EvaluatorClassDefiner returns an evaluator when accessing the evaluator class adds each attribute to the evaluator evaluates the block in the context of the evaluator only instance_execs the block once even when returning nil sets attributes on the evaluator class with a custom evaluator as a parent class bases its attribute lists on itself and its parent evaluator FactoryGirl::Factory has a factory name has a build class passes a custom creation block returns associations includes associations from the parent factory guesses the build class from the factory name creates a new factory using the class of the parent creates a new factory while overriding the parent class when overriding generated attributes with a hash returns the overridden value in the generated attributes does not call a lazy attribute block for an overridden attribute overrides a symbol parameter with a string parameter overriding an attribute with an alias uses the passed in value for the alias discards the predefined value for the attribute FactoryGirl::Factory when defined with a custom class build_class is expected to eq Float FactoryGirl::Factory when given a class that overrides #to_s sets build_class correctly FactoryGirl::Factory when defined with a class instead of a name name is expected to eq :argument_error build_class is expected to eq ArgumentError FactoryGirl::Factory when defined with a custom class name build_class is expected to eq ArgumentError FactoryGirl::Factory with a name ending in s name is expected to eq :business build_class is expected to eq Business FactoryGirl::Factory with a string for a name name is expected to eq :string FactoryGirl::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 FactoryGirl::Factory human names factory name without underscores names is expected to eq [:user] human_names is expected to eq ["user"] factory name with underscores names is expected to eq [:happy_user] human_names is expected to eq ["happy user"] factory name with big letters names is expected to eq [:LoL] human_names is expected to eq ["lol"] factory name with aliases names is expected to eq [:happy_user, :gleeful_user, :person] human_names is expected to eq ["happy user", "gleeful user", "person"] FactoryGirl::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 definition loading with factories.rb it should behave like finds definitions is expected to load definitions from factories.rb with a factories file under spec it should behave like finds definitions is expected to load definitions from spec/factories.rb with a factories file under spec/factories it should behave like finds definitions is expected to load definitions from spec/factories/post_factory.rb with several factories files under spec/factories it should behave like finds definitions is expected to load definitions from spec/factories/post_factory.rb is expected to load definitions from spec/factories/person_factory.rb with several factories files under spec/factories in non-alphabetical order loads the files in the right order with nested and unnested factories files under spec it should behave like finds definitions is expected to load definitions from spec/factories.rb is expected to load definitions from spec/factories/post_factory.rb is expected to load definitions from spec/factories/person_factory.rb with deeply nested factory files under spec it should behave like finds definitions is expected to load definitions from spec/factories/subdirectory/post_factory.rb is expected to load definitions from spec/factories/subdirectory/person_factory.rb with a factories file under test it should behave like finds definitions is expected to load definitions from test/factories.rb with a factories file under test/factories it should behave like finds definitions is expected to load definitions from test/factories/post_factory.rb with several factories files under test/factories it should behave like finds definitions is expected to load definitions from test/factories/post_factory.rb is expected to load definitions from test/factories/person_factory.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 is expected to load definitions from test/factories.rb is expected to load definitions from test/factories/post_factory.rb is expected to load definitions from test/factories/person_factory.rb with deeply nested factory files under test it should behave like finds definitions is expected to load definitions from test/factories/subdirectory/post_factory.rb is expected to load definitions from test/factories/subdirectory/person_factory.rb FactoryGirl::NullFactory is expected to delegate :defined_traits is expected to delegate :callbacks is expected to delegate :attributes is expected to delegate :constructor compile is expected to be nil class_name is expected to be nil attributes is expected to be an instance of FactoryGirl::AttributeList evaluator_class is expected to eq FactoryGirl::Evaluator FactoryGirl::NullObject responds to the given methods does not respond to other methods FactoryGirl::Registry is expected to be a kind of Enumerable finds a registered object finds a registered object with square brackets raises when an object cannot be found adds and returns the object registered knows that an object is registered by symbol knows that an object is registered by string knows when an object is not registered iterates registered objects does not include duplicate objects with registered under different names clears registered factories FactoryGirl::Sequence a basic sequence name is expected to eq :test names is expected to eq [:test] next is expected to eq "=1" when incrementing next is expected to eq "=2" a custom sequence next is expected to eq "=A" when incrementing next is expected to eq "=B" a sequence with aliases using default value next is expected to eq "=1" names is expected to eq [:test, :alias, :other] when incrementing next is expected to eq "=2" a sequence with custom value and aliases next is expected to eq "=3" when incrementing next is expected to eq "=4" a basic sequence without a block next is expected to eq 1 when incrementing next is expected to eq 2 a custom sequence without a block next is expected to eq "A" when incrementing next is expected to eq "B" iterating over items in an enumerator navigates to the next items until no items remain a custom sequence and scope increments within the correct scope when incrementing increments within the correct scope FactoryGirl::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 FactoryGirl::Strategy::Build it should behave like strategy with association support runs the factory with the correct overrides finds the factory with the correct factory name it should behave like strategy with callbacks runs the callbacks [:after_build] with the evaluation's object returns the object from the evaluation it should behave like strategy with strategy: :build runs the factory with the correct overrides finds the factory with the correct factory name FactoryGirl::Strategy::Create runs a custom create block it should behave like strategy with association support runs the factory with the correct overrides finds the factory with the correct factory name it should behave like strategy with callbacks runs the callbacks [:after_build, :before_create, :after_create] with the evaluation's object returns the object from the evaluation FactoryGirl::Strategy::Stub it should behave like strategy with association support runs the factory with the correct overrides finds the factory with the correct factory name it should behave like strategy with callbacks runs the callbacks [:after_stub] with the evaluation's object returns the object from the evaluation 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 is expected not to be new record is expected to be persisted assigns created_at raises when attempting to connect to the database by calling save raises when attempting to connect to the database by calling destroy raises when attempting to connect to the database by calling connection raises when attempting to connect to the database by calling reload raises when attempting to connect to the database by calling update_attribute raises when attempting to connect to the database by calling update_column raises when attempting to connect to the database by calling reload with optional lock:true FactoryGirl::StrategyCalculator when a class returns the class passed when a symbol finds the strategy by name returns the strategy found FactoryGirl finds a registered factory finds a registered sequence finds a registered trait Finished in 13.86 seconds (files took 2.24 seconds to load) 537 examples, 0 failures ┌──────────────────────────────────────────────────────────────────────────────┐ │ dh_ruby --install finished │ └──────────────────────────────────────────────────────────────────────────────┘ dh_installdocs -i -O--buildsystem=ruby dh_ruby_fixdocs -i -O--buildsystem=ruby debian/rules override_dh_installchangelogs make[1]: Entering directory '/build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0' dh_installchangelogs NEWS make[1]: Leaving directory '/build/ruby-factory-girl-Xy0SL5/ruby-factory-girl-4.7.0' dh_installinit -i -O--buildsystem=ruby dh_perl -i -O--buildsystem=ruby dh_link -i -O--buildsystem=ruby dh_strip_nondeterminism -i -O--buildsystem=ruby dh_compress -X.rb -i -O--buildsystem=ruby dh_fixperms -i -O--buildsystem=ruby dh_missing -i -O--buildsystem=ruby dh_installdeb -i -O--buildsystem=ruby dh_gencontrol -i -O--buildsystem=ruby dpkg-gencontrol: warning: Depends field of package ruby-factory-girl: substitution variable ${shlibs:Depends} used, but is not defined dpkg-gencontrol: warning: package ruby-factory-girl: substitution variable ${ruby:Depends} unused, but is defined dh_md5sums -i -O--buildsystem=ruby dh_builddeb -i -O--buildsystem=ruby dpkg-deb: building package 'ruby-factory-girl' in '../ruby-factory-girl_4.7.0-2.1_all.deb'. dpkg-genbuildinfo --build=all dpkg-genchanges --build=all >../ruby-factory-girl_4.7.0-2.1_all.changes dpkg-genchanges: info: binary-only arch-indep upload (source code and arch-specific packages not included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: running special hook: sync-out /build/ruby-factory-girl-Xy0SL5 /tmp/ruby-factory-girl-4.7.0-2.1ke0kriuq I: cleaning package lists and apt cache... I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap.EnHgvsBEoG... I: success in 401.2231 seconds md5: ruby-factory-girl_4.7.0-2.1_all.deb: OK sha1: ruby-factory-girl_4.7.0-2.1_all.deb: OK sha256: ruby-factory-girl_4.7.0-2.1_all.deb: OK Checksums: OK