Mock Version: 5.9 Mock Version: 5.9 Mock Version: 5.9 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/rubygem-shoulda-matchers.spec'], chrootPath='/var/lib/mock/f40-build-55173263-6532935/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.8gciuq4w:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.8gciuq4w:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '503984e5f13a45ae8567ccb20719b811', '-D', '/var/lib/mock/f40-build-55173263-6532935/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.8gciuq4w:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/rubygem-shoulda-matchers.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1706227200 Wrote: /builddir/build/SRPMS/rubygem-shoulda-matchers-5.1.0-6.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/rubygem-shoulda-matchers.spec'], chrootPath='/var/lib/mock/f40-build-55173263-6532935/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.8gciuq4w:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.8gciuq4w:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'eba8191699e94d80aeb3c0115c1571cf', '-D', '/var/lib/mock/f40-build-55173263-6532935/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.8gciuq4w:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/rubygem-shoulda-matchers.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1706227200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.P2BAQF + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf shoulda-matchers-5.1.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/shoulda-matchers-5.1.0-specs.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/shoulda-matchers-5.1.0.gem Unpacked gem: '/builddir/build/BUILD/shoulda-matchers-5.1.0' + STATUS=0 + '[' 0 -ne 0 ']' + cd shoulda-matchers-5.1.0 + rm -rf /builddir/build/BUILD/shoulda-matchers-5.1.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/shoulda-matchers-5.1.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #4 (rubygem-shoulda-matchers-5.1.0-Address-differences-in-has_secure_password-in-Rails-7.patch): + echo 'Patch #4 (rubygem-shoulda-matchers-5.1.0-Address-differences-in-has_secure_password-in-Rails-7.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb patching file lib/shoulda/matchers/rails_shim.rb Patch #8 (rubygem-shoulda-matchers-pr1579-ruby33-NoMethodError-msg.patch): + echo 'Patch #8 (rubygem-shoulda-matchers-pr1579-ruby33-NoMethodError-msg.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file lib/shoulda/matchers/independent/delegate_method_matcher.rb ~/build/BUILD ~/build/BUILD/shoulda-matchers-5.1.0 + pushd /builddir/build/BUILD + echo 'Patch #0 (rubygem-shoulda-matchers-5.1.0-Skip-bootsnap-on-the-test-project-creation.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 Patch #0 (rubygem-shoulda-matchers-5.1.0-Skip-bootsnap-on-the-test-project-creation.patch): patching file spec/support/acceptance/helpers/step_helpers.rb patching file spec/support/unit/rails_application.rb patching file spec/support/unit/rails_application.rb patching file spec/support/acceptance/helpers/step_helpers.rb patching file spec/support/unit/rails_application.rb Patch #1 (rubygem-shoulda-matchers-5.1.0-Only-mark-classes-as-unloadable-when-Rails-supports-it.patch): + echo 'Patch #1 (rubygem-shoulda-matchers-5.1.0-Only-mark-classes-as-unloadable-when-Rails-supports-it.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file spec/support/unit/helpers/class_builder.rb Patch #2 (rubygem-shoulda-matchers-5.1.0-conditionally-use-unloadable-in-another-spot.patch): + echo 'Patch #2 (rubygem-shoulda-matchers-5.1.0-conditionally-use-unloadable-in-another-spot.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file spec/support/unit/helpers/class_builder.rb Patch #3 (rubygem-shoulda-matchers-5.1.0-Use-a-hard-coded-DateTime-instead-of-DateTime.now-1.patch): + echo 'Patch #3 (rubygem-shoulda-matchers-5.1.0-Use-a-hard-coded-DateTime-instead-of-DateTime.now-1.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file spec/unit/shoulda/matchers/active_model/validate_inclusion_of_matcher_spec.rb Patch #5 (rubygem-shoulda-matchers-5.1.0-Address-differences-in-has_secure_password-in-Rails-7-test.patch): + echo 'Patch #5 (rubygem-shoulda-matchers-5.1.0-Address-differences-in-has_secure_password-in-Rails-7-test.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file spec/unit/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb Patch #6 (rubygem-shoulda-matchers-5.1.0-Using-local-gems-should-be-enough-for-testing.patch): + echo 'Patch #6 (rubygem-shoulda-matchers-5.1.0-Using-local-gems-should-be-enough-for-testing.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file spec/support/acceptance/helpers/step_helpers.rb Hunk #1 succeeded at 118 (offset 2 lines). Patch #7 (rubygem-shoulda-matchers-5.1.0-Always-use-sqlite-1.4.patch): + echo 'Patch #7 (rubygem-shoulda-matchers-5.1.0-Always-use-sqlite-1.4.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file spec/support/acceptance/helpers/step_helpers.rb Patch #9 (rubygem-shoulda-matchers-pr1506-action_text_rich_texts.patch): + echo 'Patch #9 (rubygem-shoulda-matchers-pr1506-action_text_rich_texts.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file spec/support/unit/rails_application.rb Patch #10 (rubygem-shoulda-matchers-pr1506-psych-load.patch): + echo 'Patch #10 (rubygem-shoulda-matchers-pr1506-psych-load.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file spec/support/tests/database_configuration.rb + popd ~/build/BUILD/shoulda-matchers-5.1.0 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.KqCSwT + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd shoulda-matchers-5.1.0 + gem build ../shoulda-matchers-5.1.0.gemspec WARNING: expected RubyGems version 3.5.22, was 3.2.32 WARNING: open-ended dependency on activesupport (>= 5.2.0) is not recommended if activesupport is semantically versioned, use: add_runtime_dependency "activesupport", "~> 5.2", ">= 5.2.0" WARNING: See https://guides.rubygems.org/specification-reference/ for help Successfully built RubyGem Name: shoulda-matchers Version: 5.1.0 File: shoulda-matchers-5.1.0.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection'\'' --with-cxxflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection'\'' --with-ldflags='\''-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 '\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc shoulda-matchers-5.1.0.gem WARNING: You build with buildroot. Build root: /builddir/build/BUILD/shoulda-matchers-5.1.0 Bin dir: /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/bin Gem home: /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems Plugins dir: /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/plugins /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/LICENSE /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/README.md /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/docs/errors/NonCaseSwappableValueError.md /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda-matchers.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/action_controller.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/action_controller/callback_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/action_controller/filter_param_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/action_controller/flash_store.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/action_controller/permit_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/action_controller/redirect_to_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/action_controller/render_template_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/action_controller/render_with_layout_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/action_controller/rescue_from_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/action_controller/respond_with_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/action_controller/route_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/action_controller/route_params.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/action_controller/session_store.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/action_controller/set_flash_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/action_controller/set_session_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/action_controller/set_session_or_flash_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/allow_value_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_changed_value_error.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_does_not_exist_error.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setter.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setter_and_validator.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setters.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setters_and_validators.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/allow_value_matcher/successful_check.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/allow_value_matcher/successful_setting.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/disallow_value_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/errors.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/have_secure_password_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/helpers.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/numericality_matchers.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/numericality_matchers/comparison_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/numericality_matchers/even_number_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/qualifiers.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/qualifiers/allow_nil.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/qualifiers/ignore_interference_by_writer.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/qualifiers/ignoring_interference_by_writer.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/validate_exclusion_of_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/validate_length_of_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/validation_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/validation_matcher/build_description.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/validation_message_finder.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_model/validator.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/accept_nested_attributes_for_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/association_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/association_matchers.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/association_matchers/counter_cache_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/association_matchers/dependent_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/association_matchers/inverse_of_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/association_matchers/join_table_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/association_matchers/model_reflection.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/association_matchers/model_reflector.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/association_matchers/option_verifier.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/association_matchers/optional_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/association_matchers/order_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/association_matchers/required_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/association_matchers/source_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/association_matchers/through_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/define_enum_for_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/have_attached_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/have_db_column_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/have_db_index_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/have_implicit_order_column.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/have_rich_text_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/have_secure_token_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/serialize_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/uniqueness.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/uniqueness/model.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/uniqueness/namespace.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/uniqueness/test_model_creator.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/uniqueness/test_models.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/active_record/validate_uniqueness_of_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/configuration.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/doublespeak.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/doublespeak/double.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/doublespeak/double_collection.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/doublespeak/double_implementation_registry.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/doublespeak/method_call.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/doublespeak/object_double.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/doublespeak/proxy_implementation.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/doublespeak/stub_implementation.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/doublespeak/world.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/error.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/independent.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/independent/delegate_method_matcher.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/independent/delegate_method_matcher/target_not_defined_error.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/configuration.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/configuration_error.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/inclusion.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/libraries.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/libraries/action_controller.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/libraries/active_model.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/libraries/active_record.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/libraries/missing_library.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/libraries/rails.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/libraries/routing.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/rails.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/registry.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/test_frameworks.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/test_frameworks/active_support_test_case.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/test_frameworks/minitest_4.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/test_frameworks/rspec.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/matcher_context.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/rails_shim.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/routing.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/util.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/util/word_wrap.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/version.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/lib/shoulda/matchers/warn.rb /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/shoulda-matchers.gemspec Successfully installed shoulda-matchers-5.1.0 Parsing documentation for shoulda-matchers-5.1.0 Parsing sources... 0% [ 1/126] lib/shoulda-matchers.rb 1% [ 2/126] lib/shoulda/matchers.rb 2% [ 3/126] lib/shoulda/matchers/action_controller.rb 3% [ 4/126] lib/shoulda/matchers/action_controller/callback_matcher.rb 3% [ 5/126] lib/shoulda/matchers/action_controller/filter_param_matcher.rb 4% [ 6/126] lib/shoulda/matchers/action_controller/flash_store.rb 5% [ 7/126] lib/shoulda/matchers/action_controller/permit_matcher.rb 6% [ 8/126] lib/shoulda/matchers/action_controller/redirect_to_matcher.rb 7% [ 9/126] lib/shoulda/matchers/action_controller/render_template_matcher.rb 7% [10/126] lib/shoulda/matchers/action_controller/render_with_layout_matcher.rb 8% [11/126] lib/shoulda/matchers/action_controller/rescue_from_matcher.rb 9% [12/126] lib/shoulda/matchers/action_controller/respond_with_matcher.rb 10% [13/126] lib/shoulda/matchers/action_controller/route_matcher.rb 11% [14/126] lib/shoulda/matchers/action_controller/route_params.rb 11% [15/126] lib/shoulda/matchers/action_controller/session_store.rb 12% [16/126] lib/shoulda/matchers/action_controller/set_flash_matcher.rb 13% [17/126] lib/shoulda/matchers/action_controller/set_session_matcher.rb 14% [18/126] lib/shoulda/matchers/action_controller/set_session_or_flash_matcher.rb 15% [19/126] lib/shoulda/matchers/active_model.rb 15% [20/126] lib/shoulda/matchers/active_model/allow_value_matcher.rb 16% [21/126] lib/shoulda/matchers/active_model/allow_value_matcher/attribute_changed_value_error.rb 17% [22/126] lib/shoulda/matchers/active_model/allow_value_matcher/attribute_does_not_exist_error.rb 18% [23/126] lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setter.rb 19% [24/126] lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setter_and_validator.rb 19% [25/126] lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setters.rb 20% [26/126] lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setters_and_validators.rb 21% [27/126] lib/shoulda/matchers/active_model/allow_value_matcher/successful_check.rb 22% [28/126] lib/shoulda/matchers/active_model/allow_value_matcher/successful_setting.rb 23% [29/126] lib/shoulda/matchers/active_model/disallow_value_matcher.rb 23% [30/126] lib/shoulda/matchers/active_model/errors.rb 24% [31/126] lib/shoulda/matchers/active_model/have_secure_password_matcher.rb 25% [32/126] lib/shoulda/matchers/active_model/helpers.rb 26% [33/126] lib/shoulda/matchers/active_model/numericality_matchers.rb 26% [34/126] lib/shoulda/matchers/active_model/numericality_matchers/comparison_matcher.rb 27% [35/126] lib/shoulda/matchers/active_model/numericality_matchers/even_number_matcher.rb 28% [36/126] lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb 29% [37/126] lib/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher.rb 30% [38/126] lib/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher.rb 30% [39/126] lib/shoulda/matchers/active_model/qualifiers.rb 31% [40/126] lib/shoulda/matchers/active_model/qualifiers/allow_nil.rb 32% [41/126] lib/shoulda/matchers/active_model/qualifiers/ignore_interference_by_writer.rb 33% [42/126] lib/shoulda/matchers/active_model/qualifiers/ignoring_interference_by_writer.rb 34% [43/126] lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb 34% [44/126] lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb 35% [45/126] lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb 36% [46/126] lib/shoulda/matchers/active_model/validate_exclusion_of_matcher.rb 37% [47/126] lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb 38% [48/126] lib/shoulda/matchers/active_model/validate_length_of_matcher.rb 38% [49/126] lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb 39% [50/126] lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb 40% [51/126] lib/shoulda/matchers/active_model/validation_matcher.rb 41% [52/126] lib/shoulda/matchers/active_model/validation_matcher/build_description.rb 42% [53/126] lib/shoulda/matchers/active_model/validation_message_finder.rb 42% [54/126] lib/shoulda/matchers/active_model/validator.rb 43% [55/126] lib/shoulda/matchers/active_record.rb 44% [56/126] lib/shoulda/matchers/active_record/accept_nested_attributes_for_matcher.rb 45% [57/126] lib/shoulda/matchers/active_record/association_matcher.rb 46% [58/126] lib/shoulda/matchers/active_record/association_matchers.rb 46% [59/126] lib/shoulda/matchers/active_record/association_matchers/counter_cache_matcher.rb 47% [60/126] lib/shoulda/matchers/active_record/association_matchers/dependent_matcher.rb 48% [61/126] lib/shoulda/matchers/active_record/association_matchers/inverse_of_matcher.rb 49% [62/126] lib/shoulda/matchers/active_record/association_matchers/join_table_matcher.rb 50% [63/126] lib/shoulda/matchers/active_record/association_matchers/model_reflection.rb 50% [64/126] lib/shoulda/matchers/active_record/association_matchers/model_reflector.rb 51% [65/126] lib/shoulda/matchers/active_record/association_matchers/option_verifier.rb 52% [66/126] lib/shoulda/matchers/active_record/association_matchers/optional_matcher.rb 53% [67/126] lib/shoulda/matchers/active_record/association_matchers/order_matcher.rb 53% [68/126] lib/shoulda/matchers/active_record/association_matchers/required_matcher.rb 54% [69/126] lib/shoulda/matchers/active_record/association_matchers/source_matcher.rb 55% [70/126] lib/shoulda/matchers/active_record/association_matchers/through_matcher.rb 56% [71/126] lib/shoulda/matchers/active_record/define_enum_for_matcher.rb 57% [72/126] lib/shoulda/matchers/active_record/have_attached_matcher.rb 57% [73/126] lib/shoulda/matchers/active_record/have_db_column_matcher.rb 58% [74/126] lib/shoulda/matchers/active_record/have_db_index_matcher.rb 59% [75/126] lib/shoulda/matchers/active_record/have_implicit_order_column.rb 60% [76/126] lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb 61% [77/126] lib/shoulda/matchers/active_record/have_rich_text_matcher.rb 61% [78/126] lib/shoulda/matchers/active_record/have_secure_token_matcher.rb 62% [79/126] lib/shoulda/matchers/active_record/serialize_matcher.rb 63% [80/126] lib/shoulda/matchers/active_record/uniqueness.rb 64% [81/126] lib/shoulda/matchers/active_record/uniqueness/model.rb 65% [82/126] lib/shoulda/matchers/active_record/uniqueness/namespace.rb 65% [83/126] lib/shoulda/matchers/active_record/uniqueness/test_model_creator.rb 66% [84/126] lib/shoulda/matchers/active_record/uniqueness/test_models.rb 67% [85/126] lib/shoulda/matchers/active_record/validate_uniqueness_of_matcher.rb 68% [86/126] lib/shoulda/matchers/configuration.rb 69% [87/126] lib/shoulda/matchers/doublespeak.rb 69% [88/126] lib/shoulda/matchers/doublespeak/double.rb 70% [89/126] lib/shoulda/matchers/doublespeak/double_collection.rb 71% [90/126] lib/shoulda/matchers/doublespeak/double_implementation_registry.rb 72% [91/126] lib/shoulda/matchers/doublespeak/method_call.rb 73% [92/126] lib/shoulda/matchers/doublespeak/object_double.rb 73% [93/126] lib/shoulda/matchers/doublespeak/proxy_implementation.rb 74% [94/126] lib/shoulda/matchers/doublespeak/stub_implementation.rb 75% [95/126] lib/shoulda/matchers/doublespeak/world.rb 76% [96/126] lib/shoulda/matchers/error.rb 76% [97/126] lib/shoulda/matchers/independent.rb 77% [98/126] lib/shoulda/matchers/independent/delegate_method_matcher.rb 78% [99/126] lib/shoulda/matchers/independent/delegate_method_matcher/target_not_defined_error.rb 79% [100/126] lib/shoulda/matchers/integrations.rb 80% [101/126] lib/shoulda/matchers/integrations/configuration.rb 80% [102/126] lib/shoulda/matchers/integrations/configuration_error.rb 81% [103/126] lib/shoulda/matchers/integrations/inclusion.rb 82% [104/126] lib/shoulda/matchers/integrations/libraries.rb 83% [105/126] lib/shoulda/matchers/integrations/libraries/action_controller.rb 84% [106/126] lib/shoulda/matchers/integrations/libraries/active_model.rb 84% [107/126] lib/shoulda/matchers/integrations/libraries/active_record.rb 85% [108/126] lib/shoulda/matchers/integrations/libraries/missing_library.rb 86% [109/126] lib/shoulda/matchers/integrations/libraries/rails.rb 87% [110/126] lib/shoulda/matchers/integrations/libraries/routing.rb 88% [111/126] lib/shoulda/matchers/integrations/rails.rb 88% [112/126] lib/shoulda/matchers/integrations/registry.rb 89% [113/126] lib/shoulda/matchers/integrations/test_frameworks.rb 90% [114/126] lib/shoulda/matchers/integrations/test_frameworks/active_support_test_case.rb 91% [115/126] lib/shoulda/matchers/integrations/test_frameworks/minitest_4.rb 92% [116/126] lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb 92% [117/126] lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb 93% [118/126] lib/shoulda/matchers/integrations/test_frameworks/rspec.rb 94% [119/126] lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb 95% [120/126] lib/shoulda/matchers/matcher_context.rb 96% [121/126] lib/shoulda/matchers/rails_shim.rb 96% [122/126] lib/shoulda/matchers/routing.rb 97% [123/126] lib/shoulda/matchers/util.rb 98% [124/126] lib/shoulda/matchers/util/word_wrap.rb 99% [125/126] lib/shoulda/matchers/version.rb 100% [126/126] lib/shoulda/matchers/warn.rb Installing ri documentation for shoulda-matchers-5.1.0 Installing darkfish documentation for shoulda-matchers-5.1.0 Done installing documentation for shoulda-matchers after 5 seconds 1 gem installed + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.xC8r1a + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-shoulda-matchers-5.1.0-6.fc40.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-shoulda-matchers-5.1.0-6.fc40.noarch ++ dirname /builddir/build/BUILDROOT/rubygem-shoulda-matchers-5.1.0-6.fc40.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-shoulda-matchers-5.1.0-6.fc40.noarch + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd shoulda-matchers-5.1.0 + mkdir -p /builddir/build/BUILDROOT/rubygem-shoulda-matchers-5.1.0-6.fc40.noarch/usr/share/gems + cp -a ./usr/share/gems/build_info ./usr/share/gems/cache ./usr/share/gems/doc ./usr/share/gems/extensions ./usr/share/gems/gems ./usr/share/gems/plugins ./usr/share/gems/specifications /builddir/build/BUILDROOT/rubygem-shoulda-matchers-5.1.0-6.fc40.noarch/usr/share/gems/ + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 5.1.0-6.fc40 --unique-debug-suffix -5.1.0-6.fc40.noarch --unique-debug-src-base rubygem-shoulda-matchers-5.1.0-6.fc40.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/shoulda-matchers-5.1.0 find-debuginfo: starting Extracting debug info from 0 files Creating .debug symlinks for symlinks to ELF files find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.MCJR0P + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS ~/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0 ~/build/BUILD/shoulda-matchers-5.1.0 + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd shoulda-matchers-5.1.0 + pushd ./usr/share/gems/gems/shoulda-matchers-5.1.0 + ln -s /builddir/build/BUILD/spec spec + cat + sed -i '/require '\''pry/ s/^/#/' spec/spec_helper.rb + sed -i '/current_bundle/ s/^/#/' spec/acceptance_spec_helper.rb spec/support/unit/load_environment.rb + sed -i '/CurrentBundle/ s/^/#/' spec/acceptance_spec_helper.rb spec/support/unit/load_environment.rb + sed -i '/def rails_new_command/,/^ end$/ { /rails new/ s/"$/ --skip-git --skip-asset-pipeline&/ }' spec/support/unit/rails_application.rb + sed -i '/def rails_new_command/,/^ end$/ { /rails new/ s/"$/ --skip-git --skip-asset-pipeline&/ }' spec/support/acceptance/helpers/step_helpers.rb + bundle exec rspec spec/unit /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/spec/unit/shoulda/matchers/active_model/validate_inclusion_of_matcher_spec.rb:451: warning: assigned but unused variable - new_now /builddir/build/BUILD/shoulda-matchers-5.1.0/usr/share/gems/gems/shoulda-matchers-5.1.0/spec/unit/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb:891: warning: assigned but unused variable - assertion Randomized with seed 59612 Shoulda::Matchers::ActiveModel::ValidateAcceptanceOfMatcher a model with an acceptance validation accepts when the attributes match does not overwrite the default message with nil fails when used in the negative it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) and the value change causes a test failure lists how the value got changed in the failure message an attribute which must be accepted with a custom message rejects when the message does not match accepts when the message matches a model without an acceptance validation rejects Shoulda::Matchers::Doublespeak::World #with_doubles_activated installs all doubles, yields the block, then uninstalls them all still makes sure to uninstall all doubles even if the block raises an error #double_collection_for calls DoubleCollection.new once with the given class returns the created DoubleCollection Shoulda::Matchers::ActiveModel::Helpers default_error_message if the translation for the model attribute’s error exists provides the right error message for validates_length_of provides the right error message for validate_presence_of if no translation for the model attribute’s error exists and no translation for the model’s error exists and no translation for the message exists and the translation for the attribute exists provides the right error message for validates_length_of provides the right error message for validate_presence_of and no translation for the attribute exists provides the general error message for validates_length_of provides the general error message for validate_presence_of and the translation for the message exists provides the right error message for validate_presence_of provides the right error message for validates_length_of and the translation for the model’s error exists provides the right error message for validate_presence_of provides the right error message for validates_length_of Shoulda::Matchers::ActionController::SetSessionMatcher behaves like set session or flash matcher with #[] + #to given a dynamic value produces the right description in the positive if the value evaluated in the context is present in the store accepts if the value evaluated in the context is not present in the store rejects produces the correct failure message in the negative if the value evaluated in the context is present in the store produces the correct failure message given a static value produces the right description in the positive if the given value is present in the store accepts if the given value is not present in the store produces the correct failure message rejects in the negative if the given value is present in the store produces the correct failure message with #[] produces the right description in the negative if the given key is present in the store produces the correct failure message in the positive if the given key is present in the store accepts the param as a symbol accepts the param as a string if the given key is not present in the store produces the correct failure message rejects without any qualifiers produces the right description in the negative if the given key is present in the store produces the correct failure message in the positive if the store is not empty accepts if the store is empty rejects produces the correct failure message with #to given a regexp produces the right description in the positive if the given value is present in the store accepts given a value of false accepts accepts given a value of nil if the given value is not present in the store rejects produces the correct failure message in the negative if the given value is present in the store produces the correct failure message given a static value produces the right description in the negative if the given value is present in the store produces the correct failure message in the positive if the given value is present in the store accepts accepts given a value of nil accepts given a value of false if the given value is not present in the store rejects checking for nil produces the correct failure message rejects Shoulda::Matchers::ActiveRecord::AssociationMatcher have_many rejects an association with a bad :class_name option rejects an association with a bad :dependent option accepts an association with a valid :order option accepts an association with a nonstandard foreign key, with reverse association turned off accepts an association with a valid :class_name option rejects an association that has a nonexistent foreign key does not reject a non-:through association where there is no belongs_to in the inverse model accepts a valid association with a :through option rejects an association that has a bad :through option rejects an association that has the wrong :through option rejects an association with a bad :primary_key option accepts an association with a nonstandard reverse foreign key, using :inverse_of accepts an association with a valid :source option accepts an association using an existing custom primary key produces a failure message without exception when association is missing :through option rejects a :through association where there is no belongs_to in the inverse model rejects an association with non-existent implicit class name accepts an association without a :class_name option rejects an association with a bad :source option accepts an association with a namespaced class name resolves class_name within the context of the namespace before the global namespace rejects an association with a nonstandard reverse foreign key, if :inverse_of is not correct accepts a valid association without any options adds error message when rejecting an association with non-existent class accepts a valid association with an :as option rejects an association with a bad :order option rejects an association with non-existent explicit class name accepts an association with a valid :dependent option rejects an association with a non-matching :autosave option with the correct message accepts an association with a matching :autosave option rejects an association with a bad :as option validate rejects validate(false) when no :validate option was specified accepts validate(true) when no :validate option was specified accepts validate(true) when the :validate option is true rejects validate() when :validate option is false accepts validate(false) when the :validate option is false rejects validate(true) when the :validate option is false assumes validate() means validate(true) accepts validate() when no :validate option was specified rejects validate(false) when the :validate option is true index_errors rejects an association with a non-matching :index_errors option and returns the correct message accepts an association with a matching :index_errors option if the association has a scope block and the block takes an argument and the matcher is given conditions that match the scope matches and the matcher is given conditions that do not match the scope matches and the block does not take an argument and the matcher is given conditions that match the conditions used in the scope matches and the matcher is given conditions that do not match the conditions used in the scope rejects an association with a bad :conditions option belong_to rejects an association that has no :counter_cache option rejects an association with a bad :class_name option rejects an association with a bad :primary_key option accepts an association with a valid :counter_cache option rejects an association with non-existent implicit class name rejects a nonexistent association accepts an association with a valid :conditions option rejects an association of the wrong type adds error message when rejecting an association with non-existent class rejects an association with non-existent explicit class name accepts an association with a matching :autosave option rejects an association with a bad :dependent option accepts an association with a namespaced class name rejects an association that has no :inverse_of option rejects an association with a non-matching :autosave option with the correct message rejects an association with a bad :conditions option rejects an association with a bad :counter_cache option accepts an association with an existing custom foreign key rejects an association with a bad :inverse_of option accepts an association using an existing custom primary key accepts a polymorphic association accepts an association with a valid :class_name option accepts an association with a valid :inverse_of option accepts an association with a valid :dependent option defaults :counter_cache to true rejects an association that has a nonexistent foreign key accepts an association without a :class_name option accepts a good association with the default foreign key resolves class_name within the context of the namespace before the global namespace an association with a :validate option when the model has validate: false defaults to validate(true) accepts a matching validate option rejects a non-matching validate option will not break matcher when validate option is unspecified when the model has validate: true rejects a non-matching validate option accepts a matching validate option will not break matcher when validate option is unspecified defaults to validate(true) given the association is configured with required: true when qualified with required(false) passes when qualified with optional(false) passes when qualified with optional(true) fails with an appropriate message when qualified with required(true) passes when qualified with nothing passes given the association is neither configured to be required nor optional when qualified with optional(true) when belongs_to is configured to be required by default fails with an appropriate message when belongs_to is not configured to be required by default passes when qualified with required(true) when belongs_to is configured to be required by default passes when belongs_to is not configured to be required by default fails with an appropriate message when qualified with optional(false) when belongs_to is not configured to be required by default fails with an appropriate message when belongs_to is configured to be required by default passes when qualified with nothing when belongs_to is not configured to be required by default passes and a presence validation is on the attribute instead of using required: true passes and a presence validation is on the attribute with a condition and the condition is false passes and the condition is true passes when belongs_to is configured to be required by default passes when qualified with required(false) when belongs_to is configured to be required by default fails with an appropriate message when belongs_to is not configured to be required by default passes an association with a :touch option when the model has touch: false defaults to touch(true) will not break matcher when touch option is unspecified rejects a non-matching touch option accepts a matching touch option when the model has touch: true rejects a non-matching touch option will not break matcher when touch option is unspecified defaults to touch(true) accepts a matching touch option an association without a :validate option rejects validate(true) accepts validate(false) rejects validate() when the model ensures the association is set and the matcher is qualified with required and the matcher is not qualified with without_validating_presence fails with an appropriate message and the matcher is also qualified with without_validating_presence passes and the matcher is not qualified with anything and the matcher is qualified with without_validating_presence passes and the matcher is not qualified with without_validating_presence fails with an appropriate message an association without a :touch option rejects touch() accepts touch(false) rejects touch(true) given the association is configured as optional: true when qualified with required(true) fails with an appropriate message when qualified with optional(false) fails with an appropriate message when qualified with nothing fails with an appropriate message when qualified with required(false) passes when qualified with optional(true) passes have_and_belong_to_many rejects an association with a join table with incorrect columns rejects an association with a non-matching :autosave option with the correct message accepts an association with a matching :autosave option rejects an association with non-existent implicit class name rejects a nonexistent association rejects an association with a bad :class_name option accepts an association with a valid :class_name option rejects an association with a bad :conditions option accepts an association without a :class_name option resolves class_name within the context of the namespace before the global namespace accepts an association with a namespaced class name accepts an association with a valid :conditions option rejects an association with non-existent explicit class name rejects an association of the wrong type adds error message when rejecting an association with non-existent class accepts a valid association rejects an association with a nonexistent join table validate assumes validate() means validate(true) accepts when the :validate option matches matches validate(false) to having no validate option specified rejects when the :validate option does not match using a custom association foreign key rejects an association with a join table with incorrect columns accepts foreign keys when they are symbols when qualified with join_table and it is a string and the association has been declared with a :join_table option which is the not the same as the matcher does not match, producing an appropriate failure message which is the same as the matcher and the join table does not exist does not match, producing an appropriate failure message and the join table exists and the join table is missing columns does not match, producing an appropriate failure message and the join table has the appropriate foreign key columns matches and the association has not been declared with a :join_table option does not match, producing an appropriate failure message and it is a symbol and the association has been declared with a :join_table option which is the not the same as the matcher does not match, producing an appropriate failure message which is the same as the matcher and the join table does not exist does not match, producing an appropriate failure message and the join table exists and the join table is missing columns does not match, producing an appropriate failure message and the join table has the appropriate foreign key columns matches and the association has not been declared with a :join_table option does not match, producing an appropriate failure message when the matcher is not qualified with join_table but the association has still been declared with a :join_table option and the join table exists and the join table is missing columns does not match, producing an appropriate failure message and the join table has the appropriate foreign key columns matches and the join table does not exist does not match, producing an appropriate failure message using a custom foreign key rejects an association with a join table with incorrect columns have_one accepts an association with a valid :dependent option rejects an association with a bad :primary_key option accepts a valid association without any options rejects an association that has a nonexistent foreign key rejects an association with a valid :class_name and a bad :foreign_key option accepts a valid association with an :as option rejects an association with a bad :dependent option rejects an association with non-existent implicit class name accepts an association with a valid :order option adds error message when rejecting an association with non-existent class accepts a nil dependent option if false rejects any dependent options if false rejects an association with a bad :as option accepts an association with a namespaced class name rejects an association with a bad :conditions option accepts an association without a :class_name option accepts an association with a through rejects an association with a bad :order option accepts any dependent option if true accepts an association with a valid :class_name and :foreign_key option (CPK) rejects an association with a valid :class_name and a bad :foreign_key option (CPK) rejects an association with a bad :class_name option accepts an association with an existing custom foreign key accepts an association with a matching :autosave option accepts an association with a valid :class_name option rejects an association with a non-matching :autosave option with the correct message rejects an association with non-existent explicit class name rejects an association with a bad through accepts an association with a valid :conditions option rejects an association with a valid :class_name and :foreign_key option (CPK), but no columns resolves class_name within the context of the namespace before the global namespace accepts an association using an existing custom primary key given an association with a non-matching :required option fails with an appropriate message validate matches validate(false) to having no validate option specified assumes validate() means validate(true) accepts when the :validate option matches rejects when the :validate option does not match given an association with a matching :required option passes Shoulda::Matchers::ActiveModel::ValidateConfirmationOfMatcher when the validation specifies a message via i18n passes when both validation and matcher specify a custom message passes when the expected and actual messages match fails when the expected and actual messages do not match when the model does not have a confirmation attribute raises an AttributeDoesNotExistError when the model has a confirmation validation fails when used in the negative passes it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message when a nil message is specified ignores it when the model has all attributes, but does not have the validation fails with an appropriate failure message when the model does not have the attribute under test raises an AttributeDoesNotExistError #description states that the confirmation must match its base attribute Shoulda::Matchers::ActiveRecord::HaveReadonlyAttributeMatcher a read-only attribute accepts an attribute on a class with no readonly attributes rejects being read-only assigns a failure message an attribute that is not part of the read-only set rejects being read-only Shoulda::Matchers::Doublespeak::StubImplementation #call calls #record_call on the double if no explicit implementation was set returns nil if the implementation was set as both a value and a block prefers the block over the value if the implementation was set as a block calls the block with the MethodCall object the implementation was called with returns the return value of the block if the implementation was set as a value returns the set return value Shoulda::Matchers::Doublespeak::ProxyImplementation #call calls #call_original_method on the double delegates to its stub_implementation returns the return value of the original method #returns delegates to its stub_implementation Shoulda::Matchers::Doublespeak .with_doubles_activated delegates to its world .double_collection_for delegates to its world Shoulda::Matchers::ActiveModel #allow_values is aliased to #allow_value Shoulda::Matchers::ActiveRecord::HaveImplicitOrderColumnMatcher when the given column does not exist and it is a string does not match, producing an appropriate message and it is a symbol does not match, producing an appropriate message #description returns the correct description when the given column exists when no implicit_order_column is set on the model and the given column name is a string does not match, producing an appropriate message and the given column name is a symbol does not match, producing an appropriate message when an implicit_order_column is set on the model and it matches the given column name and the column name is a string matches and the column name is a symbol matches and it does not match the given column name and the column name is a symbol does not match, producing an appropriate message and the column name is a string does not match, producing an appropriate message Shoulda::Matchers::ActionController::RespondWithMatcher a controller responding with redirect accepts responding with a numeric response code rejects responding with another status accepts responding with a symbol response code a controller responding with error rejects responding with another status accepts responding with a numeric response code accepts responding with a symbol response code a controller responding with not_implemented accepts responding with a symbol response code rejects responding with another status accepts responding with a numeric response code a controller responding with success rejects responding with another status accepts responding with a numeric response code accepts responding with a symbol response code a controller responding with missing accepts responding with a numeric response code rejects responding with another status accepts responding with a symbol response code Shoulda::Matchers::ActionController::RedirectToMatcher provides the correct description when provided a block a controller that redirects accepts redirecting to that url in a block accepts redirecting to that url rejects redirecting to a different url rejects redirecting to a different url in a block a controller that does not redirect rejects redirecting to a url Shoulda::Matchers::ActiveModel::ValidateNumericalityOfMatcher with combinations of qualifiers together is expected to validate that :attr looks like an odd number is expected to validate that :attr looks like an integer is expected to validate that :attr looks like an integer other than 1 is expected to validate that :attr looks like an integer other than 1 is expected to validate that :attr looks like an integer greater than 1 is expected to validate that :attr looks like an integer is expected to validate that :attr looks like an integer less than 1 is expected to validate that :attr looks like an even number is expected to validate that :attr looks like an integer less than or equal to 1 is expected to validate that :attr looks like an integer equal to 1 is expected to validate that :attr looks like an integer greater than or equal to 1 is expected to validate that :attr looks like an integer less than 1 is expected to validate that :attr looks like a number greater than 1 is expected to validate that :attr looks like an integer equal to 1 is expected to validate that :attr looks like an integer greater than or equal to 1 is expected to validate that :attr looks like a number other than 1 is expected to validate that :attr looks like an integer is expected to validate that :attr looks like a number less than or equal to 1 is expected to validate that :attr looks like an integer less than or equal to 1 is expected to validate that :attr looks like an integer is expected to validate that :attr looks like a number equal to 1 is expected to validate that :attr looks like a number greater than or equal to 1 is expected to validate that :attr looks like an integer greater than 1 is expected to validate that :attr looks like an integer is expected to validate that :attr looks like a number less than 1 when qualifiers match the validation options but the values are different such as testing greater_than (+ even) with lower value such as testing greater_than (+ only_integer) with lower value such as testing greater than (+ even) with higher value such as testing greater_than (+ only_integer) with higher value such as testing less_than (+ only_integer + greater_than) with higher value such as testing less_than_or_equal_to (+ odd) with higher value such as testing less_than_or_equal_to (+ odd) with lower value such as testing greater_than (+ only_integer + less_than) with lower value when the qualifiers do not match the validation options such as validating greater_than_or_equal_to (+ even) but testing that greater_than is validated such as validating even but testing that only_integer is validated such as validating greater_than_or_equal_to (+ odd) but testing that is_less_than_or_equal_to is validated such as validating greater_than_or_equal_to (+ only_integer + less_than) but testing that greater_than is validated such as not validating only_integer but testing that only_integer is validated such as validating odd (+ greater_than) but testing that even is validated qualified with is_greater_than_or_equal to validating with greater_than_or_equal_to rejects when used in the negative accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message when the column is a float column accepts (and does not raise an error) when the attribute is a virtual attribute in an ActiveRecord model accepts when the column is a decimal column accepts (and does not raise an error) when the column is an integer column accepts (and does not raise an error) not validating with greater_than_or_equal_to rejects since it does not disallow numbers that are less than the value qualified with is_greater_than and not validating with greater_than rejects since it does not disallow numbers that are less than or equal to the value and validating with greater_than rejects when used in the negative accepts when the attribute is a virtual attribute in an ActiveRecord model accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message when the column is a decimal column accepts (and does not raise an error) when the column is an integer column accepts (and does not raise an error) when the column is a float column accepts (and does not raise an error) qualified with only_integer and validating with only_integer accepts rejects when used in the negative it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message and the value change does not cause a test failure accepts (and does not raise an error) and not validating with only_integer rejects since it does not disallow non-integers with large numbers is expected to validate that :attr looks like a number less than or equal to 100000 is expected to validate that :attr looks like a number less than 100000 is expected to validate that :attr looks like a number greater than or equal to 100000 is expected to validate that :attr looks like a number greater than 100000 qualified with with_message and no message is provided ignores the qualifier and validating with a different message rejects with the correct failure message and validating with the same message accepts and the validation is missing from the model rejects with the correct failure message #description qualified with only integer + is_greater_than + less_than_or_equal_to describes that it allows integer greater than one value and less than or equal to another qualified with strict describes that it relies upon a strict validation and qualified with a comparison qualifier places the comparison description after "strictly" qualified with only_integer describes that it allows integers qualified with is_greater_than describes that it allows numbers greater than a certain value qualified with is_less_than describes that it allows numbers less than a certain value qualified with even describes that it allows even numbers qualified with nothing describes that it allows numbers qualified with odd describes that it allows odd numbers qualified with is_other_than describes that it allows numbers other than a certain value qualified with is_equal_to describes that it allows numbers equal to a certain value qualified with odd + is_greater_than_or_equal_to describes that it allows odd numbers greater than or equal to a certain value qualified with is_greater_than_or_equal_to describes that it allows numbers greater than or equal to a certain value qualified with is_less_than_or_equal_to describes that it allows numbers less than or equal to a certain value when the subject is stubbed retains that stub while the validate_numericality is matching qualified with odd and not validating with odd rejects since it does not disallow even numbers and validating with odd rejects when used in the negative accepts when the column is a decimal column accepts (and does not raise an error) it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message and the value change does not cause a test failure accepts (and does not raise an error) when the attribute is a virtual attribute in ActiveRecord model accepts when the column is an integer column accepts (and does not raise an error) when the column is a float column accepts (and does not raise an error) qualified with nothing and validating numericality accepts when the column is an integer column accepts (and does not raise an AttributeChangedValueError) when the attribute is a virtual attribute in an ActiveRecord model accepts when the column is a decimal column accepts (and does not raise an AttributeChangedValueError) when the column is a float column accepts (and does not raise an AttributeChangedValueError) when used in the negative fails it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message and the value change does not cause a test failure accepts (and does not raise an error) and not validating anything rejects since it does not disallow non-numbers qualified with strict and validating strictly accepts and not validating strictly rejects since ActiveModel::StrictValidationFailed is never raised qualified with is_less_than_or_equal_to and not validating with less_than_or_equal_to rejects since it does not disallow numbers greater than the value and validating with less_than_or_equal_to accepts rejects when used in the negative when the column is an integer column accepts (and does not raise an error) when the column is a decimal column accepts (and does not raise an error) it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message when the attribute is a virtual attribute in an ActiveRecord model accepts when the column is a float column accepts (and does not raise an error) qualified with on and validating with on accepts not qualified with on but validating with on rejects since the validation never runs against an ActiveModel model accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message and the value change does not cause a test failure accepts (and does not raise an error) qualified with is_other_than and not validating with other_than rejects since it does not disallow numbers that are not the value and validating with other_than rejects when used in the negative accepts when the column is an integer column accepts (and does not raise an error) when the attribute is a virtual attribute in an ActiveRecord model accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message when the column is a decimal column accepts (and does not raise an error) when the column is a float column accepts (and does not raise an error) qualified with allow_nil and validating with allow_nil accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) and the value change causes a test failure lists how the value got changed in the failure message and not validating with allow_nil rejects since it tries to treat nil as a number qualified with is_equal_to and not validating with equal_to rejects since it does not disallow numbers that are not the value and validating with equal_to rejects when used in the negative accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message when the column is a decimal column accepts (and does not raise an error) when the column is an integer column accepts (and does not raise an error) when the column is a float column accepts (and does not raise an error) when the attribute is a virtual attribute in an ActiveRecord model accepts qualified with even and not validating with even rejects since it does not disallow odd numbers and validating with even rejects when used in the negative accepts when the attribute is a virtual attribute in an ActiveRecord model accepts when the column is a float column accepts (and does not raise an error) it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message and the value change does not cause a test failure accepts (and does not raise an error) when the column is an integer column accepts (and does not raise an error) when the column is a decimal column accepts (and does not raise an error) qualified with is_less_than and validating with less_than accepts rejects when used in the negative it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message when the column is a float column accepts (and does not raise an error) when the column is a decimal column accepts (and does not raise an error) when the column is an integer column accepts (and does not raise an error) when the attribute is a virtual attribute in an ActiveRecord model accepts and not validating with less_than rejects since it does not disallow numbers greater than or equal to the value qualified with on but not validating with on accepts since the validation never considers a context Shoulda::Matchers::ActiveRecord::SerializeMatcher accepts when the attribute is serialized when attribute is not serialized assigns a helpful failure message when using #as rejects assigns a helpful failure message when using #as_instance_of assigns a helpful failure message a serializer that is an instance of a class accepts when using #as_instance_of rejects when using #as an attribute that will end up being serialized as YAML accepts when the types match rejects when using as_instance_of rejects when the types do not match Shoulda::Matchers::ActiveRecord::HaveSecureTokenMatcher matches when called with ignoring_check_for_db_index without db index does not match when missing a token column does not match when missing a column for a custom attribute does not match when missing an index for a custom attribute does not match when missing an token index does not match when when lacking has_secure_token for the attribute matches when the subject configures has_secure_token with the db for a custom attribute fails with the appropriate message when negated does not match when when lacking has_secure_token matches when the subject configures has_secure_token with the db #description returns the message including the name of the default column returns the message including the name of a provided column Shoulda::Matchers::ActiveModel::ValidateAbsenceOfMatcher an attribute with a context-dependent validation with the validation context matches without the validation context does not match a model with an absence validation accepts does not override the default message with a present when the column backing the attribute is an enum still works when column is of type float accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) when column is of type decimal accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) when column is of type text accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) when column is of type binary accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) when column is of type date accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) when column is of type timestamp accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) when column is of type time accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) when column is of type integer accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) when column is of type datetime accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) when column is of type string accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) when used in the negative fails a non-absent has_and_belongs_to_many association rejects with the correct failure message an ActiveModel class with an absence validation accepts does not override the default message with a blank it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) an i18n translation containing %{attribute} and %{model} does not raise an exception a has_many association without an absence validation does not require the attribute to not be set a model without an absence validation rejects with the correct failure message an ActiveModel class without an absence validation rejects with the correct failure message a has_many association with an absence validation requires the attribute to not be set it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) an absent has_and_belongs_to_many association accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) Shoulda::Matchers::ActiveModel::ValidatePresenceOfMatcher a has_many_attached association without a presence validation does not require the attribute to be set against a pre-set password in a model that has_secure_password does not raises a CouldNotSetPasswordError a has_one_attached association with a presence validation requires the attribute to be set it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) and the value change causes a test failure lists how the value got changed in the failure message an ActiveModel class without a presence validation rejects with the correct failure message a has_many association without a presence validation does not require the attribute to be set against a belongs_to association not declared with an optional or required option when belongs_to is configured to be required by default and an explicit presence validation is not on the association does not match, instructing the user to use belong_to instead and an explicit presence validation is on the association matches when belongs_to is configured to be optional by default and an explicit presence validation is not on the association does not match and an explicit presence validation is on the association matches declared with required: false and an explicit presence validation is on the association matches and an explicit presence validation is not on the association does not match declared with optional: false and an explicit presence validation is on the association matches and an explicit presence validation is not on the association does not match, instructing the user to use belongs_to instead declared with optional: true and an explicit presence validation is on the association matches and an explicit presence validation is not on the association does not match declared with required: true and an explicit presence validation is not on the association does not match, instructing the user to use belongs_to instead and an explicit presence validation is on the association matches a has_and_belongs_to_many association with a presence validation on it accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message and the value change does not cause a test failure accepts (and does not raise an error) a has_many_attached association with a presence validation requires the attribute to be set it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message and the value change does not cause a test failure accepts (and does not raise an error) when the attribute typecasts nil to another blank value, such as an empty array accepts (and does not raise an AttributeChangedValueError) an ActiveModel class with a presence validation accepts does not override the default message with a blank it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message and the value change does not cause a test failure accepts (and does not raise an error) when the attribute has been configured with a type and it is a string works and it is not a string still works when the attribute has not been configured with a type and it is assumed to be something other than a string still works an i18n translation containing %{attribute} and %{model} does not raise an exception a strictly required attribute accepts when the :strict options match rejects with the correct failure message when the :strict options do not match does not override the default message with a blank an attribute with a context-dependent validation without the validation context does not match with the validation context matches a has_and_belongs_to_many association without a presence validation on it rejects with the correct failure message qualified with allow_nil when validating a model with a presence validator matches in the negative and it is specified with allow_nil: true does not match in the negative matches in the positive and it is not specified with allow_nil: true does not match in the positive when validating a model without a presence validator matches in the negative does not match in the positive a model without a presence validation rejects with the correct failure message a model with a presence validation fails when used in the negative accepts does not override the default message with a blank when the attribute is decorated with serialize and the serializer is JSON still works and the serializer is something custom still works and the serializer is a built-in Ruby type and the type is a string still works and the type is not a string still works when the column backing the attribute is a scalar, but not a string still works it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) and the value change causes a test failure lists how the value got changed in the failure message a has_many association with a presence validation requires the attribute to be set it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message and the value change does not cause a test failure accepts (and does not raise an error) a has_one_attached association without a presence validation requires the attribute to be set Shoulda::Matchers::ActionController::RenderTemplateMatcher a controller that does not render partials accepts not rendering a partial a controller that renders a partial several times accepts rendering that partial twice a controller that does not render a template rejects rendering a template a controller that renders a partial accepts rendering that template in the given context rejects rendering a different template accepts rendering that partial rejects rendering a different template in the given context a controller that renders a template rejects rendering a different template rejects rendering a different template in the given context accepts rendering that template accepts rendering that template in the given context Shoulda::Matchers::Independent::DelegateMethodMatcher raises an error if the delegate object was never specified before matching qualified with #with_prefix as true when the subject's delegating method also has a prefix accepts when the subject's delegating method does not have a prefix rejects with the correct failure message without arguments when the subject's delegating method does not have a prefix rejects with the correct failure message when the subject's delegating method also has a prefix accepts as a symbol/string when the subject's delegating method has a different prefix rejects with the correct failure message when the subject's delegating method has the same prefix accepts when the subject does not delegate anything when the subject is a class uses the proper syntax for class methods in errors when the subject is an instance rejects with the correct failure message when the subject delegates correctly accepts negating the matcher rejects with the correct failure message qualified with #allow_nil when using delegate from Rails when delegations were not defined with :allow_nil rejects with the correct failure message when delegations were defined with :allow_nil accepts when using Forwardable when the delegate object is nil rejects with the correct failure message when delegating manually when the delegating method accounts for the delegate object being nil accepts when the delegating method does not account for the delegate object being nil rejects with the correct failure message qualified with #as when the given method is the same as the subject's delegating method accepts negating the assertion rejects with the correct failure message when the given method is not the same as the subject's delegating method rejects with the correct failure message qualified with #with_arguments qualified with #with_arguments when the subject delegates with matching arguments accepts negating the matcher rejects with the correct failure message when not given the correct arguments rejects with the correct failure message stubbing a delegating method on an instance only happens temporarily and is removed after the match when the delegating method is private accepts #description when the subject is an instance qualified with #with_arguments states that it should delegate method to the right object with right argument qualified with #as states that it should delegate method to the right object and method qualified with #with_prefix as a symbol/string should delegate as (prefix_supplied)_(method_on_target) as true when the subject's delegating method also has a prefix produces the correct description without arguments when the subject's delegating method also has a prefix produces the correct description without any qualifiers states that it should delegate method to the right object when the subject is a class qualified with #with_arguments states that it should delegate method to the right object with right argument qualified with #as states that it should delegate method to the right object and method without any qualifiers states that it should delegate method to the right object Shoulda::Matchers::ActionController::SetFlashMatcher when the controller sets both flash and flash.now does not mix flash and flash.now behaves like set session or flash matcher with #to given a static value produces the right description in the positive if the given value is present in the store accepts given a value of false accepts given a value of nil accepts if the given value is not present in the store rejects checking for nil produces the correct failure message rejects in the negative if the given value is present in the store produces the correct failure message given a regexp produces the right description in the positive if the given value is not present in the store rejects produces the correct failure message if the given value is present in the store accepts given a value of false accepts given a value of nil accepts in the negative if the given value is present in the store produces the correct failure message with #[] + #to given a dynamic value produces the right description in the positive if the value evaluated in the context is not present in the store rejects produces the correct failure message if the value evaluated in the context is present in the store accepts in the negative if the value evaluated in the context is present in the store produces the correct failure message given a static value produces the right description in the negative if the given value is present in the store produces the correct failure message in the positive if the given value is present in the store accepts if the given value is not present in the store rejects produces the correct failure message with #[] produces the right description in the negative if the given key is present in the store produces the correct failure message in the positive if the given key is present in the store accepts the param as a symbol accepts the param as a string if the given key is not present in the store produces the correct failure message rejects without any qualifiers produces the right description in the negative if the given key is present in the store produces the correct failure message in the positive if the store is empty rejects produces the correct failure message if the store is not empty accepts when the now qualifier is called after the to qualifier raises a QualifierOrderError behaves like set session or flash matcher without any qualifiers produces the right description in the negative if the given key is present in the store produces the correct failure message in the positive if the store is empty rejects produces the correct failure message if the store is not empty accepts with #[] produces the right description in the negative if the given key is present in the store produces the correct failure message in the positive if the given key is not present in the store rejects produces the correct failure message if the given key is present in the store accepts the param as a symbol accepts the param as a string with #[] + #to given a static value produces the right description in the positive if the given value is present in the store accepts if the given value is not present in the store produces the correct failure message rejects in the negative if the given value is present in the store produces the correct failure message given a dynamic value produces the right description in the negative if the value evaluated in the context is present in the store produces the correct failure message in the positive if the value evaluated in the context is present in the store accepts if the value evaluated in the context is not present in the store rejects produces the correct failure message with #to given a regexp produces the right description in the positive if the given value is not present in the store produces the correct failure message rejects if the given value is present in the store accepts given a value of false accepts given a value of nil accepts in the negative if the given value is present in the store produces the correct failure message given a static value produces the right description in the positive if the given value is present in the store accepts accepts given a value of nil accepts given a value of false if the given value is not present in the store rejects checking for nil rejects produces the correct failure message in the negative if the given value is present in the store produces the correct failure message when the now qualifier is called after the key is set raises a QualifierOrderError Shoulda::Matchers::ActiveRecord::HaveDbIndexMatcher the matcher assuming all models are connected to the same database when given a group of columns when the table does not have the given index does not match when used in the positive matches when used in the negative when the table has the given index does not match when used in the negative matches when used in the positive when given one column when qualified with unique: false when the table has the given index when the index is not a non-unique index does not match when used in the positive matches when used in the negative when the index is a non-unique index does not match when used in the negative matches when used in the positive when the table does not have the given index matches in the negative does not match in the positive when qualified with unique: true when the table has the given index when the index is not a unique index matches when used in the negative does not match when used in the positive when the index is a unique index matches when used in the positive does not match when used in the negative when the table does not have the given index does not match in the positive matches in the negative when qualified with unique when the table does not have the given index matches in the negative does not match in the positive when the table has the given index when the index is not a unique index matches when used in the negative does not match when used in the positive when the index is a unique index does not match when used in the negative matches when used in the positive when qualified with nothing when the table has the given index matches in the positive does not match in the negative when the table does not have the given index does not match in the positive matches in the negative when not all models are connected to the same database when the table has the given index matches #description when given one column when qualified with unique returns the correct description when not qualified with anything returns the correct description when qualified with unique: true returns the correct description when qualified with unique: false returns the correct description when given a group of columns when qualified with unique returns the correct description when qualified with unique: true returns the correct description when qualified with unique: false returns the correct description when not qualified with anything returns the correct description Shoulda::Matchers::ActiveRecord::DefineEnumForMatcher if the attribute is defined as an enum but is an alias matches with only the attribute name specified if the attribute is defined as an enum has the right description matches if the attribute is not defined as an enum rejects with an appropriate failure message if the column storing the attribute is not an integer type rejects with an appropriate failure message with the backing column specified to be of some type if the column storing the attribute is of a different type rejects with an appropriate failure message if the column storing the attribute is of the same type has the right description matches qualified with both #with_prefix and #with_suffix if the attribute was not defined with a different prefix rejects with an appropriate failure message if the attribute was defined with the same prefix and suffix matches has the right description if the attribute was defined with a different suffix rejects with an appropriate failure message qualified with #with_suffix when the suffix is implicit if the attribute was not defined with a suffix rejects with an appropriate failure message if the attribute was defined with a suffix has the right description matches when the suffix is explicit if the attribute was not defined with a suffix rejects with an appropriate failure message if the attribute was defined with the same suffix matches has the right description if the attribute was defined with a different suffix rejects with an appropriate failure message if a method to hold enum values exists on the model but was not created via the enum macro rejects with an appropriate failure message with both attribute name and enum values specified when the actual enum values are an array if the attribute is not defined as an enum rejects with an appropriate failure message if the attribute is defined as an enum but the enum values do not match rejects with an appropriate failure message and the enum values match has the right description matches when the actual enum values are a hash if the attribute is not defined as an enum rejects with an appropriate failure message if the attribute is defined as an enum but the enum values do not match rejects with an appropriate failure message and the enum values match when expected enum values are an array has the right description matches when expected enum values are a hash matches has the right description if the attribute is given in plural form accidentally rejects with an appropriate failure message qualified with #with_prefix when the prefix is implicit if the attribute was defined with a prefix has the right description matches if the attribute was not defined with a prefix rejects with an appropriate failure message when the prefix is explicit if the attribute was defined with a different prefix rejects with an appropriate failure message if the attribute was not defined with a prefix rejects with an appropriate failure message if the attribute was defined with the same prefix matches has the right description with values specified using #with produces a warning Shoulda::Matchers::ActiveModel::HaveSecurePasswordMatcher with no arguments passed to has_secure_password does not match when the subject does not authenticate a password matches when the subject configures has_secure_password with default options does not match when the subject is missing the password_digest attribute when custom attribute is given to has_secure_password matches when the subject configures has_secure_password with correct options does not match when the subject is missing the custom digest attribute does not match when the subject does not authenticate a password Shoulda::Matchers::ActionController::RouteMatcher given a controller that is not namespaced given a controller and action joined together in a string when the existing route has a glob segment and no param is given which represents the segment rejects and a param is given which represents the segment accepts when all parts of the expected route but the controller match an existing route rejects when no parts of the expected route match an existing route rejects when all parts of the expected route but the path match an existing route rejects when all parts of the expected route but the action match an existing route rejects when all parts of the expected route but the method match an existing route rejects when the actual route has a default param whose value is a symbol and the expected params include a value for it as a string accepts as a symbol accepts when all parts of the expected route match an existing route accepts and the expected controller is specified as a symbol accepts and the expected action is specified as a symbol accepts when the actual route has a param and the expected params do not match the actual params rejects and the expected params include that param accepts but its value was not specified as a string accepts, treating it as a string given just an action when no parts of the expected route match an existing route rejects when all parts of the expected route but the method match an existing route rejects when the actual route has a default param whose value is a symbol and the expected params include a value for it as a string accepts as a symbol accepts when all parts of the expected route match an existing route accepts and the expected action is specified as a symbol accepts when all parts of the expected route but the action match an existing route rejects when the actual route has a param and the expected params include that param accepts but its value was not specified as a string accepts, treating it as a string and the expected params do not match the actual params rejects when the existing route has a glob segment and a param is given which represents the segment accepts and no param is given which represents the segment rejects when all parts of the expected route but the path match an existing route rejects given a controller and action specified as individual options when all parts of the expected route match an existing route accepts and the expected controller is specified as a symbol accepts and the expected action is specified as a symbol accepts when the actual route has a default param whose value is a symbol and the expected params include a value for it as a symbol accepts as a string accepts when all parts of the expected route but the controller match an existing route rejects when the existing route has a glob segment and a param is given which represents the segment accepts and no param is given which represents the segment rejects when the actual route has a param and the expected params include that param accepts but its value was not specified as a string accepts, treating it as a string and the expected params do not match the actual params rejects when no parts of the expected route match an existing route rejects when all parts of the expected route but the action match an existing route rejects when all parts of the expected route but the method match an existing route rejects when all parts of the expected route but the path match an existing route rejects given a controller that is namespaced given a controller and action specified as individual options when all parts of the expected route but the method match an existing route rejects when the existing route has a glob segment and a param is given which represents the segment accepts and no param is given which represents the segment rejects when the actual route has a default param whose value is a symbol and the expected params include a value for it as a symbol accepts as a string accepts when no parts of the expected route match an existing route rejects when all parts of the expected route but the controller match an existing route rejects when all parts of the expected route but the path match an existing route rejects when all parts of the expected route but the action match an existing route rejects when the actual route has a param and the expected params do not match the actual params rejects and the expected params include that param accepts but its value was not specified as a string accepts, treating it as a string when all parts of the expected route match an existing route accepts and the expected controller is specified as a symbol accepts and the expected action is specified as a symbol accepts given a controller and action joined together in a string when no parts of the expected route match an existing route rejects when the actual route has a param and the expected params include that param accepts but its value was not specified as a string accepts, treating it as a string and the expected params do not match the actual params rejects when all parts of the expected route but the method match an existing route rejects when the actual route has a default param whose value is a symbol and the expected params include a value for it as a symbol accepts as a string accepts when all parts of the expected route but the path match an existing route rejects when all parts of the expected route but the action match an existing route rejects when all parts of the expected route match an existing route accepts and the expected controller is specified as a symbol accepts and the expected action is specified as a symbol accepts when all parts of the expected route but the controller match an existing route rejects when the existing route has a glob segment and a param is given which represents the segment accepts and no param is given which represents the segment rejects given just an action when all parts of the expected route but the method match an existing route rejects when all parts of the expected route but the action match an existing route rejects when all parts of the expected route match an existing route accepts and the expected action is specified as a symbol accepts when the actual route has a default param whose value is a symbol and the expected params include a value for it as a string accepts as a symbol accepts when no parts of the expected route match an existing route rejects when all parts of the expected route but the path match an existing route rejects when the actual route has a param and the expected params do not match the actual params rejects and the expected params include that param accepts but its value was not specified as a string accepts, treating it as a string when the existing route has a glob segment and a param is given which represents the segment accepts and no param is given which represents the segment rejects Shoulda::Matchers::ActionController::RescueFromMatcher a controller that rescues from RuntimeError asserts controller is setup with rescue_from with a handler method asserts rescue_from was not set up with incorrect handler method asserts rescue_from can find the handler when it is public asserts the controller responds to the handler method asserts rescue_from can find the handler when it is private asserts rescue_from can find the handler when it is protected without a handler method the handler method is not included in the description a controller that does not rescue from RuntimeError asserts controller is not setup with rescue_from Shoulda::Matchers::ActionController::RouteParams #normalize when the route parameters is a string and a hash produces a hash of route parameters when the route parameters is a hash stringifies the values in the hash when the route params is a string produces a hash of route params Shoulda::Matchers::ActiveRecord::ValidateUniquenessOfMatcher when the model has a uniqueness validation fails when used in the negative when the existing record was created beforehand when the subject is a new record accepts when the subject is itself the existing record accepts when the attribute has a character limit accepts when the existing record was not created beforehand and the subject is empty and the attribute being tested are required along with other attributes can save the subject without the attributes being set and the model has required attributes other than the attribute being validated can save the subject without the attributes being set and the attribute being tested is required can save the subject without the attribute being set and the table has non-nullable columns other than the attribute being validated which are not set beforehand raises a useful exception which are set beforehand can save the subject and the attribute being tested has other validations on it can save the subject without it being completely valid and the subject is not empty creates the record automatically from the subject and the model has required attributes other than the attribute being validated, set beforehand can save the subject and the table has required attributes other than the attribute being validated, set beforehand can save the subject it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message and the validation has a custom message given a string when the given and actual messages do not match rejects with an appropriate failure message when the given and actual messages match accepts given a regex when the given and actual messages do not match rejects with an appropriate failure message when the given and actual messages match accepts when no message is specified rejects with an appropriate failure message when the validation has no scope and a scope is specified rejects with an appropriate failure message when the attribute is of integer type accepts when the validation is not declared with allow_nil given a new record whose attribute is nil rejects with an appropriate failure message given an existing record whose attribute is nil rejects with an appropriate failure message when the writer method for the attribute changes the case of incoming values when the scoped_to argument is passed as a string transforms the scoped_to argument to a symbol when the validation is case-sensitive and the matcher is ensuring that the validation is case-sensitive rejects with an appropriate failure message and the matcher is ignoring case sensitivity accepts (and not raise an error) when the scope argument is defined as a string on the model transforms the scope argument to a symbol when the validation is case-insensitive and the matcher is ensuring that the validation is case-insensitive accepts (and does not raise an error) when the validation is declared with allow_nil given an existing record whose attribute is nil accepts given a new record whose attribute is nil accepts when testing that a polymorphic *_type column is one of the validation scopes sets that column to a meaningful value that works with other validations on the same column if the model the *_type column refers to is namespaced, and shares the last part of its name with an existing model still works when the validation is declared with allow_blank given an existing record whose attribute is nil accepts given an existing record whose attribute is empty accepts given a new record whose attribute is nil accepts when the model is declared with has_secure_password given a record whose attribute is empty accepts given a record whose attribute is nil accepts given a new record whose attribute is empty accepts when the model does not have the attribute being tested fails with an appropriate failure message when the model has a scoped uniqueness validation when one of the scoped attributes is a string column when a non-existent attribute is specified as a scope when there is more than one scope rejects with an appropriate failure message (and does not raise an error) when there is more than one scope rejects with an appropriate failure message (and does not raise an error) when too broad of a scope is specified rejects with an appropriate failure message when no scope is specified rejects with an appropriate failure message if the scope attribute is unset in the record given to the matcher rejects with an appropriate failure message when there is more than one validation on the same attribute with different scopes when a record exists beforehand, where all scopes are set when each validation has a different message accepts when a different scope is specified rejects with an appropriate failure message when the correct scope is specified when the subject is an existing record accepts still accepts if the scope is unset beforehand when the subject is a new record accepts still accepts if the scope is unset beforehand when too narrow of a scope is specified rejects with an appropriate failure message when more than one record exists that has the next version of the attribute's value accepts when one of the scoped attributes is a boolean column when no scope is specified rejects with an appropriate failure message if the scope attribute is unset in the record given to the matcher rejects with an appropriate failure message when too broad of a scope is specified rejects with an appropriate failure message when a non-existent attribute is specified as a scope when there is more than one scope rejects with an appropriate failure message (and does not raise an error) when there is more than one scope rejects with an appropriate failure message (and does not raise an error) when there is more than one validation on the same attribute with different scopes when a record exists beforehand, where all scopes are set when each validation has a different message accepts when the correct scope is specified when the subject is an existing record accepts still accepts if the scope is unset beforehand when the subject is a new record accepts still accepts if the scope is unset beforehand when a different scope is specified rejects with an appropriate failure message when too narrow of a scope is specified rejects with an appropriate failure message when more than one record exists that has the next version of the attribute's value accepts when one of the scoped attributes is an integer column when no scope is specified rejects with an appropriate failure message if the scope attribute is unset in the record given to the matcher rejects with an appropriate failure message when one of the scoped attributes is an enum accepts when too broad of a scope is specified rejects with an appropriate failure message when too narrow of a scope is specified rejects with an appropriate failure message when too narrow of a scope is specified rejects with an appropriate failure message when there is more than one validation on the same attribute with different scopes when a record exists beforehand, where all scopes are set when each validation has a different message accepts when a different scope is specified rejects with an appropriate failure message when too broad of a scope is specified rejects with an appropriate failure message when more than one record exists that has the next version of the attribute's value accepts when the correct scope is specified when the subject is a new record accepts still accepts if the scope is unset beforehand when the subject is an existing record still accepts if the scope is unset beforehand accepts when a non-existent attribute is specified as a scope when there is more than one scope rejects with an appropriate failure message (and does not raise an error) when there is more than one scope rejects with an appropriate failure message (and does not raise an error) when one of the scoped attributes is a datetime column (using DateTime) when no scope is specified rejects with an appropriate failure message if the scope attribute is unset in the record given to the matcher rejects with an appropriate failure message when there is more than one validation on the same attribute with different scopes when a record exists beforehand, where all scopes are set when each validation has a different message accepts when a non-existent attribute is specified as a scope when there is more than one scope rejects with an appropriate failure message (and does not raise an error) when there is more than one scope rejects with an appropriate failure message (and does not raise an error) when too narrow of a scope is specified rejects with an appropriate failure message when too broad of a scope is specified rejects with an appropriate failure message when a different scope is specified rejects with an appropriate failure message when more than one record exists that has the next version of the attribute's value accepts when the correct scope is specified when the subject is a new record still accepts if the scope is unset beforehand accepts when the subject is an existing record still accepts if the scope is unset beforehand accepts when one of the scoped attributes is a time column (using Time) when no scope is specified rejects with an appropriate failure message if the scope attribute is unset in the record given to the matcher rejects with an appropriate failure message when the correct scope is specified when the subject is an existing record still accepts if the scope is unset beforehand accepts when the subject is a new record accepts still accepts if the scope is unset beforehand when there is more than one validation on the same attribute with different scopes when a record exists beforehand, where all scopes are set when each validation has a different message accepts when too broad of a scope is specified rejects with an appropriate failure message when a different scope is specified rejects with an appropriate failure message when too narrow of a scope is specified rejects with an appropriate failure message when more than one record exists that has the next version of the attribute's value accepts when a non-existent attribute is specified as a scope when there is more than one scope rejects with an appropriate failure message (and does not raise an error) when there is more than one scope rejects with an appropriate failure message (and does not raise an error) when one of the scoped attributes is a datetime column (using Time) when there is more than one validation on the same attribute with different scopes when a record exists beforehand, where all scopes are set when each validation has a different message accepts when too broad of a scope is specified rejects with an appropriate failure message when more than one record exists that has the next version of the attribute's value accepts when no scope is specified rejects with an appropriate failure message if the scope attribute is unset in the record given to the matcher rejects with an appropriate failure message when the correct scope is specified when the subject is a new record accepts still accepts if the scope is unset beforehand when the subject is an existing record still accepts if the scope is unset beforehand accepts when a non-existent attribute is specified as a scope when there is more than one scope rejects with an appropriate failure message (and does not raise an error) when there is more than one scope rejects with an appropriate failure message (and does not raise an error) when too narrow of a scope is specified rejects with an appropriate failure message when a different scope is specified rejects with an appropriate failure message when one of the scoped attributes is a date column when a different scope is specified rejects with an appropriate failure message when a non-existent attribute is specified as a scope when there is more than one scope rejects with an appropriate failure message (and does not raise an error) when there is more than one scope rejects with an appropriate failure message (and does not raise an error) when too narrow of a scope is specified rejects with an appropriate failure message when there is more than one validation on the same attribute with different scopes when a record exists beforehand, where all scopes are set when each validation has a different message accepts when more than one record exists that has the next version of the attribute's value accepts when the correct scope is specified when the subject is a new record still accepts if the scope is unset beforehand accepts when the subject is an existing record accepts still accepts if the scope is unset beforehand when too broad of a scope is specified rejects with an appropriate failure message when no scope is specified rejects with an appropriate failure message if the scope attribute is unset in the record given to the matcher rejects with an appropriate failure message when one of the scoped attributes is a text column when too narrow of a scope is specified rejects with an appropriate failure message when no scope is specified rejects with an appropriate failure message if the scope attribute is unset in the record given to the matcher rejects with an appropriate failure message when there is more than one validation on the same attribute with different scopes when a record exists beforehand, where all scopes are set when each validation has a different message accepts when the correct scope is specified when the subject is a new record accepts still accepts if the scope is unset beforehand when the subject is an existing record still accepts if the scope is unset beforehand accepts when a non-existent attribute is specified as a scope when there is more than one scope rejects with an appropriate failure message (and does not raise an error) when there is more than one scope rejects with an appropriate failure message (and does not raise an error) when a different scope is specified rejects with an appropriate failure message when too broad of a scope is specified rejects with an appropriate failure message when more than one record exists that has the next version of the attribute's value accepts when there is more than one scoped attribute and all are boolean columns accepts when all of the scoped attributes are true accepts when one of the scoped attributes is true and the other is false accepts when all the scoped attributes are false when the model has a case-insensitive validation when case_insensitive is not specified rejects with an appropriate failure message when case_insensitive is specified accepts it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message when the column is a boolean column accepts (and does not print a warning) when the model does not have a uniqueness validation rejects with an appropriate failure message when the validation is not declared with allow_blank given a new record whose attribute is empty rejects with an appropriate failure message given an existing record whose attribute is empty rejects with an appropriate failure message given an existing record whose attribute is nil rejects with an appropriate failure message given a new record whose attribute is nil rejects with an appropriate failure message when the model has a case-sensitive validation when the matcher is not qualified with case_insensitive accepts given an existing record where the value of the attribute under test is not case-swappable raises a NonCaseSwappableValueError when the matcher is qualified with case_insensitive rejects with an appropriate failure message Shoulda::Matchers::Doublespeak::Double #activate replaces the method with an implementation #deactivate still restores the original method if #activate was called twice restores the original method after being doubled does nothing if the method has not been doubled #call_original_method binds the stored method object to the given object and calls it with the given args and block does nothing if no method has been stored does not store the original method multiple times when a method is doubled multiple times #record_call adds the given call to the list of calls initializer if doubles are currently activated on the world level immediately activates the new Double #to_return tells its implementation to call the given block prefers a block over a non-block tells its implementation to return the given value Shoulda::Matchers::ActiveModel::AllowValueMatcher when the attribute being validated is different than the attribute that receives the validation error when the validation error message was provided via i18n fails given an invalid value passes given a valid value when the validation error message was provided directly given an invalid value rejects if the messages do not match technically accepts given a valid value accepts an attribute with several validations does not match given multiple bad values does not match given bad values along with good values matches given a good value does not match given good values along with bad values does not match given a bad value an attribute with a validation and a custom message allows a good value rejects a bad value with an appropriate failure message when interpolation values are provided along with a custom message when the messages match accepts when the messages do not match rejects with an appropriate failure message when the custom messages do not match rejects with an appropriate failure message with a single value allows you to call description before calling matches? given an ActiveRecord model where the attribute under test is an enum and the given value is a value in that enum accepts given attributes to preset on the record before validation when the assertion is positive if any attributes do not exist on the model raises an AttributeDoesNotExistError when the assertion is negative if any attributes do not exist on the model raises an AttributeDoesNotExistError with no values raises an error an attribute with a context-dependent validation with the validation context allows a good value rejects a bad value without the validation context allows a bad value an attribute with a validation given several good values when used in the negative rejects with an appropriate failure message when used in the positive accepts given one good value when used in the positive accepts when used in the negative rejects with an appropriate failure message given good values along with bad values when used in the negative rejects with an appropriate failure message when used in the positive rejects with an appropriate failure message given several bad values when used in the negative accepts when used in the positive rejects with an appropriate failure message given one bad value when used in the positive rejects with an appropriate failure message when used in the negative accepts given bad values along with good values when used in the positive rejects with an appropriate failure message when used in the negative rejects with an appropriate failure message when the attribute interferes with attempts to be set when the attribute cannot be changed from non-nil to nil and the record remains valid accepts (and does not raise an AttributeChangedValueError) and the record becomes invalid rejects with an appropriate failure message when the attribute cannot be changed from nil to non-nil and the record becomes invalid rejects with an appropriate failure message and the record remains valid accepts (and does not raise an AttributeChangedValueError) when the attribute cannot be changed from a non-nil value to another non-nil value and the record remains valid accepts (and does not raise an AttributeChangedValueError) and the record becomes invalid rejects with an appropriate failure message when the attribute does not exist on the model when the assertion is negative raises an AttributeDoesNotExistError when the assertion is positive raises an AttributeDoesNotExistError #description truncates the description when long describes itself with a single value describes itself with two values describes itself with more than two values #_after_setting_value sets a block which is yielded after each value is set on the attribute Shoulda::Matchers::ActiveModel::ValidateExclusionOfMatcher an attribute which must be excluded from a range fails when used in the negative rejects if the given range falls short of the top of the range in the validation rejects if the given range spills past the bottom of the range in the validation rejects if the given range spills past the top of the range in the validation does not override the default message with a blank rejects if the given range falls short of the bottom of the range in the validation accepts ensuring the correct range it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message an attribute with a custom validation message accepts ensuring the correct range with an interpolated variable in the message accepts ensuring the correct range an attribute which must be excluded from an array rejects when only part of array matches fails when used in the negative rejects when array does not match at all accepts with correct array it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message when there is one value has correct description when there are two values has correct description when there are three or more values has correct description an attribute with custom range validations accepts ensuring the correct range and messages has correct description an attribute which must be excluded from a range with excluded end rejects ensuring excluded value accepts ensuring the correct range Shoulda::Matchers::ActiveModel::DisallowValueMatcher an attribute where the message occurs on another attribute matches if the message is correct but the value is not does not match if the value and message are both correct an attribute with a format validation matches if the value is not allowed does not match if the value is allowed an attribute with a context-dependent validation with the validation context does not match a good value disallows a bad value without the validation context does not match an attribute with a format validation and a custom message does not match if the value and message are both correct matches if the message is correct but the value is not delegates its failure message to its allow matcher's negative failure message Shoulda::Matchers::ActiveRecord::HaveDbColumnMatcher rejects a nonexistent database column accepts an existing database column with null option rejects a column of wrong null accepts a column of correct null #of_type rejects a column of wrong type accepts a column of correct type rejects a nonexistent database column with limit option rejects a column of wrong limit accepts a column of correct limit with scale option accepts a column of correct scale rejects a column of wrong scale with default option accepts a column with correct default rejects a column with wrong default with invalid argument option raises an error with the unknown options with primary option rejects a column that is not primary accepts a column that is primary with precision option accepts a column of correct precision rejects a column of wrong precision Shoulda::Matchers::ActionController::PermitMatcher can be used more than once in the same test requires an action works with #update specifically works when multiple ActionController::Parameters were instantiated allows extra parameters to be provided if the route requires them requires a verb for a non-restful action negative failure message returns the correct message qualified with #on returns the correct message when operating on the entire params hash tracks multiple calls to #permit for different subparameters rejects when #permit has not been called accepts all of the permitted attributes rejects attributes that have not been permitted accepts a subset of the permitted attributes #for when given :create POSTs to the controller when given :update PATCHes to the controller when given a custom action and verb calls the action with the verb #description returns the correct string when a verb is specified returns the correct string #matches? does not raise an error when #fetch was used instead of #require (issue #495) stubbing params on the controller does not permanently stub the params hash prevents permanently stubbing params on error still allows #require to return a slice of the params still allows the original params hash to be modified and accessed prior to the call to #require when operating on a slice of the params hash accepts a subset of the permitted attributes rejects when #permit has not been called rejects if asserting that parameters were not permitted, but on the wrong slice accepts all of the permitted attributes rejects attributes that have not been permitted tracks multiple calls to #permit for different subparameters tracks multiple calls to #permit for the same subparameter positive failure message when no parameters were permitted returns the correct message qualified with #on when the subparameter was never required returns the correct message when the subparameter was required but no parameters were permitted returns the correct message but some, but not all, parameters were permitted returns the correct message when some, but not all, parameters were permitted returns the correct message, including missing attributes Shoulda::Matchers::ActiveRecord::HaveRichTextMatcher when the model does not have a RichText association does not match when provided with a model attribute that does not exist does not match when provided with a model attribute that exist #description returns the message including the name of the provided association when the model has a RichText association matches when the subject configures has_rich_text Shoulda::Matchers::ActiveModel::ValidateLengthOfMatcher an attribute with a custom minimum length validation accepts ensuring the correct minimum length an attribute with a maximum length accepts ensuring the correct maximum length rejects ensuring a lower maximum length with any message rejects ensuring a higher maximum length with any message does not override the default message with a blank it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) and the value change causes a test failure lists how the value got changed in the failure message an attribute with a required exact length and another validation accepts ensuring the correct length an attribute with a required exact length rejects ensuring a higher maximum length with any message accepts ensuring the correct length does not override the default message with a blank rejects ensuring a lower maximum length with any message it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) and the value change causes a test failure lists how the value got changed in the failure message an attribute with a custom maximum length validation accepts ensuring the correct minimum length using translations a too_short translation containing %{attribute}, %{model} does not raise an exception a wrong_length translation containing %{attribute}, %{model} does not raise an exception a too_long translation containing %{attribute}, %{model} does not raise an exception qualified with allow_nil and not validating with allow_nil rejects and validating with allow_nil accepts an attribute with a non-zero minimum length validation rejects ensuring a lower minimum length with any message rejects ensuring a higher minimum length with any message accepts ensuring the correct minimum length fails when used in the negative does not override the default message with a blank it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change does not cause a test failure accepts (and does not raise an error) and the value change causes a test failure lists how the value got changed in the failure message an attribute without a length validation rejects ensuring a minimum length qualified with allow_blank and not validating with allow_blank rejects and validating with allow_blank with minimum and minimum is greater than 1 accepts and minimum is 1 accepts with maximum and maximum is greater than 0 accepts and maximum is 0 accepts an attribute with a custom equal validation accepts ensuring the correct exact length an attribute with a minimum length validation of 0 accepts ensuring the correct minimum length Shoulda::Matchers::Doublespeak::ObjectDouble returns nil from any method call responds to any method records every method call #calls_to returns all of the invocations of the given method and their arguments/block returns an empty array if the given method was never called Shoulda::Matchers::ActiveModel::ValidateInclusionOfMatcher for a database column against a datetime attribute behaves like it supports in_range matches given a range that exactly matches the valid range does not match a record with no validations does not match given a range whose end value falls outside valid range does not match given a range whose start value falls outside valid range does not match given a range whose start value falls inside valid range does not match given a range whose end value falls inside valid range behaves like it supports allow_blank matches when the validation specifies allow_blank matches when the validation does not specify allow_blank behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward matches when the validation does not specify allow_nil behaves like it supports with_message not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message given nil is as if with_message had never been called given a string does not match when validation uses the default message instead of given message does not match when validation uses a message but it is not same as given matches when validation uses given message matches when validation uses given message that has an interpolated variable given a regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex behaves like it supports with_message given nil is as if with_message had never been called given a string does not match when validation uses a message but it is not same as given matches when validation uses given message that has an interpolated variable matches when validation uses given message does not match when validation uses the default message instead of given message given a regex matches when validation uses a message that matches the regex does not match when validation uses the default message instead of given message does not match when validation uses a message but it does not match regex not having been qualified matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message matches when the validation uses the default message it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports in_array matches given the same array of valid values fails when used in the negative does not match when one of the given values is invalid matches given a subset of the valid values raises an error when valid and given value is our test outside value when the record has no validations fails when used in the positive with an appropriate failure message passes when used in the negative behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil behaves like it supports with_message not having been qualified matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message matches when the validation uses the default message given nil is as if with_message had never been called given a string does not match when validation uses a message but it is not same as given matches when validation uses given message matches when validation uses given message that has an interpolated variable does not match when validation uses the default message instead of given message given a regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports allow_nil does not match when the validation does not specify allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil behaves like it supports with_message given a regex does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex does not match when validation uses the default message instead of given message given a string does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable matches when validation uses given message does not match when validation uses a message but it is not same as given given nil is as if with_message had never been called not having been qualified matches when the validation uses the default message matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message behaves like it supports allow_blank matches when the validation specifies allow_blank does not match when the validation does not specify allow_blank against a float attribute behaves like it supports in_range does not match given a range whose start value falls inside valid range does not match a record with no validations does not match given a range whose end value falls inside valid range does not match given a range whose end value falls outside valid range does not match given a range whose start value falls outside valid range matches given a range that exactly matches the valid range behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports allow_blank matches when the validation specifies allow_blank matches when the validation does not specify allow_blank it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports allow_nil matches when the validation does not specify allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports with_message not having been qualified matches when the validation uses the default message does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n given nil is as if with_message had never been called given a string matches when validation uses given message that has an interpolated variable matches when validation uses given message does not match when validation uses the default message instead of given message does not match when validation uses a message but it is not same as given given a regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports with_message given a string does not match when validation uses the default message instead of given message matches when validation uses given message does not match when validation uses a message but it is not same as given matches when validation uses given message that has an interpolated variable not having been qualified matches when the validation uses the default message matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message given a regex does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex does not match when validation uses the default message instead of given message given nil is as if with_message had never been called behaves like it supports in_array matches when one of the given values is a zero raises an error when valid and given value is our test outside value fails when used in the negative matches given the same array of valid values matches given a subset of the valid values does not match when one of the given values is invalid behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports allow_blank does not match when the validation does not specify allow_blank matches when the validation specifies allow_blank when the record has no validations passes when used in the negative fails when used in the positive with an appropriate failure message it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports with_message given a regex does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex does not match when validation uses the default message instead of given message given nil is as if with_message had never been called given a string does not match when validation uses a message but it is not same as given does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable matches when validation uses given message not having been qualified matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message does not match when the validation is configured with an overridden message behaves like it supports allow_nil does not match when the validation does not specify allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil behaves like it supports with_message given nil is as if with_message had never been called given a regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex given a string does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable matches when validation uses given message does not match when validation uses a message but it is not same as given not having been qualified matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message matches when the validation uses the default message against a timestamp column behaves like it supports in_array matches given a subset of the valid values fails when used in the negative raises an error when valid and given value is our test outside value matches given the same array of valid values does not match when one of the given values is invalid behaves like it supports with_message given a string does not match when validation uses a message but it is not same as given matches when validation uses given message matches when validation uses given message that has an interpolated variable does not match when validation uses the default message instead of given message given nil is as if with_message had never been called given a regex matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message behaves like it supports allow_nil does not match when the validation does not specify allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil when the record has no validations fails when used in the positive with an appropriate failure message passes when used in the negative behaves like it supports allow_blank matches when the validation specifies allow_blank does not match when the validation does not specify allow_blank it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports with_message given a regex matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message given nil is as if with_message had never been called not having been qualified matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message does not match when the validation is configured with an overridden message given a string does not match when validation uses a message but it is not same as given matches when validation uses given message does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable behaves like it supports in_range does not match given a range whose end value falls outside valid range matches given a range that exactly matches the valid range does not match given a range whose start value falls inside valid range does not match given a range whose start value falls outside valid range does not match given a range whose end value falls inside valid range does not match a record with no validations behaves like it supports with_message given a regex does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex does not match when validation uses the default message instead of given message given nil is as if with_message had never been called given a string matches when validation uses given message matches when validation uses given message that has an interpolated variable does not match when validation uses the default message instead of given message does not match when validation uses a message but it is not same as given not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message behaves like it supports allow_nil matches when the validation does not specify allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports with_message given a regex matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message given a string matches when validation uses given message does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable does not match when validation uses a message but it is not same as given not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message given nil is as if with_message had never been called behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports allow_blank matches when the validation does not specify allow_blank matches when the validation specifies allow_blank it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message against an attribute with a specific column limit does not raise an exception when attempting to use the matcher against a boolean attribute which is non-nullable when ensuring inclusion of false matches when ensuring inclusion of true and false prints a warning matches prints a warning when ensuring inclusion of nil raises a specific error when ensuring inclusion of true matches which is nullable when ensuring inclusion of true matches when ensuring inclusion of nil prints a warning matches when ensuring inclusion of true and false matches prints a warning prints a warning when ensuring inclusion of false matches against an integer attribute behaves like it supports in_array matches given the same array of valid values matches given a subset of the valid values matches when one of the given values is a zero does not match when one of the given values is invalid fails when used in the negative raises an error when valid and given value is our test outside value when the record has no validations fails when used in the positive with an appropriate failure message passes when used in the negative behaves like it supports with_message not having been qualified matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message matches when the validation uses the default message given a regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex given a string matches when validation uses given message does not match when validation uses a message but it is not same as given matches when validation uses given message that has an interpolated variable does not match when validation uses the default message instead of given message given nil is as if with_message had never been called behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil does not match when the validation does not specify allow_nil behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports with_message given nil is as if with_message had never been called given a regex matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message given a string matches when validation uses given message does not match when validation uses a message but it is not same as given matches when validation uses given message that has an interpolated variable does not match when validation uses the default message instead of given message not having been qualified matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message does not match when the validation is configured with an overridden message it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports allow_blank does not match when the validation does not specify allow_blank matches when the validation specifies allow_blank behaves like it supports in_range does not match given a range whose end value falls inside valid range matches given a range that exactly matches the valid range does not match given a range whose start value falls inside valid range does not match given a range whose start value falls outside valid range does not match a record with no validations does not match given a range whose end value falls outside valid range behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports allow_blank matches when the validation does not specify allow_blank matches when the validation specifies allow_blank it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports with_message given a regex does not match when validation uses the default message instead of given message does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex given nil is as if with_message had never been called not having been qualified matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message matches when the validation uses the default message given a string does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable does not match when validation uses a message but it is not same as given matches when validation uses given message behaves like it supports with_message given a string matches when validation uses given message that has an interpolated variable does not match when validation uses the default message instead of given message does not match when validation uses a message but it is not same as given matches when validation uses given message given a regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex given nil is as if with_message had never been called not having been qualified matches when the validation uses the default message does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n behaves like it supports allow_nil matches when the validation does not specify allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward when attribute validates a range of values via custom validation matches ensuring the correct range and messages against a time attribute behaves like it supports in_range does not match given a range whose end value falls outside valid range does not match given a range whose end value falls inside valid range does not match a record with no validations matches given a range that exactly matches the valid range does not match given a range whose start value falls inside valid range does not match given a range whose start value falls outside valid range behaves like it supports allow_blank matches when the validation specifies allow_blank matches when the validation does not specify allow_blank behaves like it supports with_message not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message matches when the validation uses the default message and it is overridden in i18n given a string matches when validation uses given message does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable does not match when validation uses a message but it is not same as given given a regex does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex does not match when validation uses the default message instead of given message given nil is as if with_message had never been called behaves like it supports allow_nil matches when the validation does not specify allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports with_message given a string matches when validation uses given message that has an interpolated variable does not match when validation uses a message but it is not same as given does not match when validation uses the default message instead of given message matches when validation uses given message given nil is as if with_message had never been called given a regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil behaves like it supports in_array matches given the same array of valid values fails when used in the negative matches given a subset of the valid values does not match when one of the given values is invalid when the record has no validations fails when used in the positive with an appropriate failure message passes when used in the negative behaves like it supports allow_nil matches when the validation specifies allow_nil does not match when the validation does not specify allow_nil allows other qualifiers to be chained afterward behaves like it supports allow_blank does not match when the validation does not specify allow_blank matches when the validation specifies allow_blank behaves like it supports with_message given nil is as if with_message had never been called not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message matches when the validation uses the default message and it is overridden in i18n given a string matches when validation uses given message that has an interpolated variable does not match when validation uses the default message instead of given message matches when validation uses given message does not match when validation uses a message but it is not same as given given a regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports with_message not having been qualified matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message matches when the validation uses the default message given a string matches when validation uses given message that has an interpolated variable does not match when validation uses the default message instead of given message matches when validation uses given message does not match when validation uses a message but it is not same as given given a regex matches when validation uses a message that matches the regex does not match when validation uses the default message instead of given message does not match when validation uses a message but it does not match regex given nil is as if with_message had never been called behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward against a decimal attribute behaves like it supports in_array fails when used in the negative raises an error when valid and given value is our test outside value matches given a subset of the valid values matches given the same array of valid values does not match when one of the given values is invalid matches when one of the given values is a zero behaves like it supports with_message given a regex matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message given nil is as if with_message had never been called given a string matches when validation uses given message does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable does not match when validation uses a message but it is not same as given not having been qualified matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message matches when the validation uses the default message when the record has no validations passes when used in the negative fails when used in the positive with an appropriate failure message behaves like it supports with_message given a regex does not match when validation uses the default message instead of given message does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex given a string does not match when validation uses a message but it is not same as given matches when validation uses given message matches when validation uses given message that has an interpolated variable does not match when validation uses the default message instead of given message given nil is as if with_message had never been called not having been qualified matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message does not match when the validation is configured with an overridden message behaves like it supports allow_blank does not match when the validation does not specify allow_blank matches when the validation specifies allow_blank behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil behaves like it supports allow_nil matches when the validation specifies allow_nil does not match when the validation does not specify allow_nil allows other qualifiers to be chained afterward behaves like it supports allow_blank matches when the validation specifies allow_blank it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports in_range does not match given a range whose end value falls inside valid range does not match given a range whose start value falls inside valid range does not match given a range whose end value falls outside valid range matches given a range that exactly matches the valid range does not match given a range whose start value falls outside valid range does not match a record with no validations behaves like it supports allow_blank matches when the validation specifies allow_blank matches when the validation does not specify allow_blank behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil matches when the validation does not specify allow_nil behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports with_message given a string matches when validation uses given message that has an interpolated variable does not match when validation uses the default message instead of given message matches when validation uses given message does not match when validation uses a message but it is not same as given given a regex matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message given nil is as if with_message had never been called behaves like it supports allow_blank matches when the validation specifies allow_blank it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports with_message given a regex does not match when validation uses the default message instead of given message does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex not having been qualified matches when the validation uses the default message does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n given a string matches when validation uses given message does not match when validation uses a message but it is not same as given matches when validation uses given message that has an interpolated variable does not match when validation uses the default message instead of given message given nil is as if with_message had never been called against a string attribute behaves like it supports in_array matches given a subset of the valid values raises an error when valid and given value is our test outside value fails when used in the negative matches given the same array of valid values does not match when one of the given values is invalid behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward does not match when the validation does not specify allow_nil behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports with_message given nil is as if with_message had never been called not having been qualified matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message does not match when the validation is configured with an overridden message given a string matches when validation uses given message that has an interpolated variable matches when validation uses given message does not match when validation uses the default message instead of given message does not match when validation uses a message but it is not same as given given a regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex when the record has no validations passes when used in the negative fails when used in the positive with an appropriate failure message behaves like it supports with_message given a regex matches when validation uses a message that matches the regex does not match when validation uses the default message instead of given message does not match when validation uses a message but it does not match regex not having been qualified matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message does not match when the validation is configured with an overridden message given a string does not match when validation uses the default message instead of given message does not match when validation uses a message but it is not same as given matches when validation uses given message that has an interpolated variable matches when validation uses given message given nil is as if with_message had never been called behaves like it supports allow_blank does not match when the validation does not specify allow_blank matches when the validation specifies allow_blank against a date attribute behaves like it supports in_range matches given a range that exactly matches the valid range does not match given a range whose start value falls outside valid range does not match given a range whose start value falls inside valid range does not match given a range whose end value falls outside valid range does not match a record with no validations does not match given a range whose end value falls inside valid range behaves like it supports allow_blank matches when the validation specifies allow_blank matches when the validation does not specify allow_blank behaves like it supports with_message given nil is as if with_message had never been called not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message matches when the validation uses the default message and it is overridden in i18n given a regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex given a string matches when validation uses given message that has an interpolated variable does not match when validation uses the default message instead of given message matches when validation uses given message does not match when validation uses a message but it is not same as given it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports with_message not having been qualified matches when the validation uses the default message matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message given a regex does not match when validation uses the default message instead of given message does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex given nil is as if with_message had never been called given a string matches when validation uses given message that has an interpolated variable does not match when validation uses a message but it is not same as given does not match when validation uses the default message instead of given message matches when validation uses given message behaves like it supports allow_nil matches when the validation specifies allow_nil matches when the validation does not specify allow_nil allows other qualifiers to be chained afterward behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports in_array matches given the same array of valid values does not match when one of the given values is invalid raises an error when valid and given value is our test outside value fails when used in the negative matches given a subset of the valid values it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports with_message given nil is as if with_message had never been called given a string matches when validation uses given message does not match when validation uses the default message instead of given message does not match when validation uses a message but it is not same as given matches when validation uses given message that has an interpolated variable given a regex matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message not having been qualified matches when the validation uses the default message does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward when the record has no validations fails when used in the positive with an appropriate failure message passes when used in the negative behaves like it supports allow_blank matches when the validation specifies allow_blank does not match when the validation does not specify allow_blank behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil does not match when the validation does not specify allow_nil behaves like it supports with_message given a regex matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message given a string does not match when validation uses a message but it is not same as given does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable matches when validation uses given message not having been qualified matches when the validation uses the default message matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message given nil is as if with_message had never been called #description given a range of values returns the correct string given an array of values when there are three or more values returns the correct string when there is one value returns the correct string when there are two values returns the correct string for a plain Ruby attribute against a date attribute behaves like it supports in_array matches given a subset of the valid values matches given the same array of valid values does not match when one of the given values is invalid fails when used in the negative raises an error when valid and given value is our test outside value behaves like it supports with_message not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message matches when the validation uses the default message and it is overridden in i18n given a string matches when validation uses given message that has an interpolated variable does not match when validation uses a message but it is not same as given does not match when validation uses the default message instead of given message matches when validation uses given message given a regex does not match when validation uses the default message instead of given message does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex given nil is as if with_message had never been called behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward when the record has no validations passes when used in the negative fails when used in the positive with an appropriate failure message behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports with_message given a regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex given a string matches when validation uses given message that has an interpolated variable does not match when validation uses the default message instead of given message matches when validation uses given message does not match when validation uses a message but it is not same as given given nil is as if with_message had never been called not having been qualified matches when the validation uses the default message matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports allow_nil does not match when the validation does not specify allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports allow_blank matches when the validation specifies allow_blank does not match when the validation does not specify allow_blank behaves like it supports in_range does not match given a range whose start value falls outside valid range matches given a range that exactly matches the valid range does not match given a range whose end value falls inside valid range does not match given a range whose end value falls outside valid range does not match a record with no validations does not match given a range whose start value falls inside valid range behaves like it supports with_message not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message given nil is as if with_message had never been called given a string does not match when validation uses a message but it is not same as given matches when validation uses given message that has an interpolated variable matches when validation uses given message does not match when validation uses the default message instead of given message given a regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex behaves like it supports allow_blank matches when the validation specifies allow_blank matches when the validation does not specify allow_blank behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil behaves like it supports with_message given a string does not match when validation uses a message but it is not same as given does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable matches when validation uses given message given nil is as if with_message had never been called given a regex does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex does not match when validation uses the default message instead of given message not having been qualified matches when the validation uses the default message does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports allow_nil matches when the validation does not specify allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward against a datetime attribute behaves like it supports in_range does not match given a range whose end value falls inside valid range does not match given a range whose end value falls outside valid range does not match given a range whose start value falls outside valid range matches given a range that exactly matches the valid range does not match given a range whose start value falls inside valid range does not match a record with no validations behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation does not specify allow_nil matches when the validation specifies allow_nil behaves like it supports allow_blank matches when the validation does not specify allow_blank matches when the validation specifies allow_blank behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports with_message not having been qualified matches when the validation uses the default message matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message given a string does not match when validation uses the default message instead of given message matches when validation uses given message does not match when validation uses a message but it is not same as given matches when validation uses given message that has an interpolated variable given a regex matches when validation uses a message that matches the regex does not match when validation uses the default message instead of given message does not match when validation uses a message but it does not match regex given nil is as if with_message had never been called behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports with_message given a string does not match when validation uses the default message instead of given message matches when validation uses given message does not match when validation uses a message but it is not same as given matches when validation uses given message that has an interpolated variable given a regex does not match when validation uses the default message instead of given message does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message given nil is as if with_message had never been called it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports in_array raises an error when valid and given value is our test outside value matches given the same array of valid values matches given a subset of the valid values does not match when one of the given values is invalid fails when used in the negative behaves like it supports allow_nil does not match when the validation does not specify allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports with_message given nil is as if with_message had never been called given a string matches when validation uses given message that has an interpolated variable matches when validation uses given message does not match when validation uses the default message instead of given message does not match when validation uses a message but it is not same as given not having been qualified matches when the validation uses the default message does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n given a regex does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex does not match when validation uses the default message instead of given message behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports with_message given a string does not match when validation uses the default message instead of given message does not match when validation uses a message but it is not same as given matches when validation uses given message that has an interpolated variable matches when validation uses given message not having been qualified matches when the validation uses the default message matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message given nil is as if with_message had never been called given a regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil when the record has no validations fails when used in the positive with an appropriate failure message passes when used in the negative behaves like it supports allow_blank does not match when the validation does not specify allow_blank matches when the validation specifies allow_blank it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message against a boolean attribute (designated by true) when ensuring inclusion of false matches when ensuring inclusion of true matches when ensuring inclusion of true and false prints a warning prints a warning matches against an integer attribute behaves like it supports in_array matches given the same array of valid values matches given a subset of the valid values matches when one of the given values is a zero does not match when one of the given values is invalid raises an error when valid and given value is our test outside value fails when used in the negative behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports allow_nil does not match when the validation does not specify allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports with_message given a regex matches when validation uses a message that matches the regex does not match when validation uses the default message instead of given message does not match when validation uses a message but it does not match regex not having been qualified matches when the validation uses the default message does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n given a string does not match when validation uses a message but it is not same as given matches when validation uses given message that has an interpolated variable does not match when validation uses the default message instead of given message matches when validation uses given message given nil is as if with_message had never been called it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports allow_blank matches when the validation specifies allow_blank does not match when the validation does not specify allow_blank when the record has no validations passes when used in the negative fails when used in the positive with an appropriate failure message behaves like it supports with_message given a string does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable matches when validation uses given message does not match when validation uses a message but it is not same as given not having been qualified matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message does not match when the validation is configured with an overridden message given a regex matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message given nil is as if with_message had never been called behaves like it supports in_range does not match a record with no validations does not match given a range whose end value falls inside valid range does not match given a range whose start value falls outside valid range does not match given a range whose end value falls outside valid range does not match given a range whose start value falls inside valid range matches given a range that exactly matches the valid range behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil behaves like it supports with_message not having been qualified matches when the validation uses the default message does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n given a string does not match when validation uses a message but it is not same as given matches when validation uses given message that has an interpolated variable matches when validation uses given message does not match when validation uses the default message instead of given message given a regex does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex does not match when validation uses the default message instead of given message given nil is as if with_message had never been called behaves like it supports allow_blank matches when the validation specifies allow_blank matches when the validation does not specify allow_blank behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation does not specify allow_nil matches when the validation specifies allow_nil behaves like it supports allow_blank matches when the validation specifies allow_blank it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports with_message given a string matches when validation uses given message that has an interpolated variable matches when validation uses given message does not match when validation uses the default message instead of given message does not match when validation uses a message but it is not same as given given nil is as if with_message had never been called given a regex does not match when validation uses the default message instead of given message does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message when attribute validates a range of values via custom validation matches ensuring the correct range and messages against a float attribute behaves like it supports in_array fails when used in the negative matches when one of the given values is a zero raises an error when valid and given value is our test outside value matches given the same array of valid values does not match when one of the given values is invalid matches given a subset of the valid values behaves like it supports allow_blank matches when the validation specifies allow_blank does not match when the validation does not specify allow_blank behaves like it supports with_message not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message given a regex matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message given a string does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable does not match when validation uses a message but it is not same as given matches when validation uses given message given nil is as if with_message had never been called behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil does not match when the validation does not specify allow_nil behaves like it supports with_message given a regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex given nil is as if with_message had never been called given a string matches when validation uses given message does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable does not match when validation uses a message but it is not same as given not having been qualified matches when the validation uses the default message matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message when the record has no validations passes when used in the negative fails when used in the positive with an appropriate failure message behaves like it supports allow_blank matches when the validation specifies allow_blank it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports in_range does not match given a range whose end value falls inside valid range does not match given a range whose start value falls inside valid range matches given a range that exactly matches the valid range does not match given a range whose start value falls outside valid range does not match a record with no validations does not match given a range whose end value falls outside valid range behaves like it supports with_message not having been qualified matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message matches when the validation uses the default message given nil is as if with_message had never been called given a regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex given a string does not match when validation uses a message but it is not same as given does not match when validation uses the default message instead of given message matches when validation uses given message matches when validation uses given message that has an interpolated variable behaves like it supports with_message given nil is as if with_message had never been called not having been qualified matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message matches when the validation uses the default message given a string does not match when validation uses the default message instead of given message does not match when validation uses a message but it is not same as given matches when validation uses given message that has an interpolated variable matches when validation uses given message given a regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports allow_nil matches when the validation does not specify allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports allow_blank matches when the validation specifies allow_blank matches when the validation does not specify allow_blank against a decimal attribute behaves like it supports in_range does not match given a range whose start value falls inside valid range does not match given a range whose end value falls inside valid range does not match given a range whose start value falls outside valid range does not match given a range whose end value falls outside valid range does not match a record with no validations matches given a range that exactly matches the valid range behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports allow_nil matches when the validation specifies allow_nil matches when the validation does not specify allow_nil allows other qualifiers to be chained afterward behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward behaves like it supports with_message given nil is as if with_message had never been called given a regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex not having been qualified matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message matches when the validation uses the default message given a string does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable matches when validation uses given message does not match when validation uses a message but it is not same as given behaves like it supports allow_blank matches when the validation specifies allow_blank matches when the validation does not specify allow_blank behaves like it supports with_message given a string matches when validation uses given message does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable does not match when validation uses a message but it is not same as given given a regex matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message given nil is as if with_message had never been called not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports in_array fails when used in the negative does not match when one of the given values is invalid matches given the same array of valid values matches given a subset of the valid values raises an error when valid and given value is our test outside value matches when one of the given values is a zero it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports allow_blank does not match when the validation does not specify allow_blank matches when the validation specifies allow_blank behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports with_message given a regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex not having been qualified matches when the validation uses the default message does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n given nil is as if with_message had never been called given a string does not match when validation uses a message but it is not same as given does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable matches when validation uses given message behaves like it supports allow_nil does not match when the validation does not specify allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil behaves like it supports with_message not having been qualified matches when the validation uses the default message and it is overridden in i18n does not match when the validation is configured with an overridden message matches when the validation uses the default message given a regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex given nil is as if with_message had never been called given a string matches when validation uses given message that has an interpolated variable matches when validation uses given message does not match when validation uses a message but it is not same as given does not match when validation uses the default message instead of given message when the record has no validations passes when used in the negative fails when used in the positive with an appropriate failure message behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil against a string attribute behaves like it supports in_array matches given the same array of valid values matches given a subset of the valid values does not match when one of the given values is invalid fails when used in the negative raises an error when valid and given value is our test outside value behaves like it supports allow_blank matches when the validation specifies allow_blank does not match when the validation does not specify allow_blank behaves like it supports allow_blank matches when the validation specifies allow_blank when the record has no validations fails when used in the positive with an appropriate failure message passes when used in the negative behaves like it supports allow_nil matches when the validation specifies allow_nil does not match when the validation does not specify allow_nil allows other qualifiers to be chained afterward behaves like it supports with_message given a regex matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message given nil is as if with_message had never been called given a string matches when validation uses given message does not match when validation uses the default message instead of given message does not match when validation uses a message but it is not same as given matches when validation uses given message that has an interpolated variable not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message behaves like it supports with_message not having been qualified matches when the validation uses the default message does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n given a string does not match when validation uses the default message instead of given message does not match when validation uses a message but it is not same as given matches when validation uses given message that has an interpolated variable matches when validation uses given message given nil is as if with_message had never been called given a regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex does not match when validation uses a message but it does not match regex behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message against an attribute with a specific column limit does not raise an exception when attempting to use the matcher against a boolean attribute (designated by false) when ensuring inclusion of true matches when ensuring inclusion of false matches when ensuring inclusion of true and false prints a warning matches prints a warning against a time attribute behaves like it supports in_range does not match given a range whose start value falls inside valid range does not match given a range whose end value falls inside valid range matches given a range that exactly matches the valid range does not match given a range whose start value falls outside valid range does not match a record with no validations does not match given a range whose end value falls outside valid range behaves like it supports allow_blank matches when the validation does not specify allow_blank matches when the validation specifies allow_blank behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation specifies allow_nil behaves like it supports with_message given nil is as if with_message had never been called not having been qualified matches when the validation uses the default message does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n given a regex does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex does not match when validation uses the default message instead of given message given a string matches when validation uses given message that has an interpolated variable matches when validation uses given message does not match when validation uses the default message instead of given message does not match when validation uses a message but it is not same as given it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message behaves like it supports allow_nil allows other qualifiers to be chained afterward matches when the validation does not specify allow_nil matches when the validation specifies allow_nil behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports with_message given a string does not match when validation uses the default message instead of given message does not match when validation uses a message but it is not same as given matches when validation uses given message matches when validation uses given message that has an interpolated variable given nil is as if with_message had never been called given a regex does not match when validation uses a message but it does not match regex matches when validation uses a message that matches the regex does not match when validation uses the default message instead of given message not having been qualified does not match when the validation is configured with an overridden message matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message behaves like it supports in_array matches given the same array of valid values does not match when one of the given values is invalid fails when used in the negative matches given a subset of the valid values behaves like it supports with_message given a regex does not match when validation uses a message but it does not match regex does not match when validation uses the default message instead of given message matches when validation uses a message that matches the regex given nil is as if with_message had never been called given a string does not match when validation uses the default message instead of given message matches when validation uses given message that has an interpolated variable matches when validation uses given message does not match when validation uses a message but it is not same as given not having been qualified matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message does not match when the validation is configured with an overridden message behaves like it supports allow_blank does not match when the validation does not specify allow_blank matches when the validation specifies allow_blank behaves like it supports allow_blank matches when the validation specifies allow_blank behaves like it supports allow_nil allows other qualifiers to be chained afterward does not match when the validation does not specify allow_nil matches when the validation specifies allow_nil behaves like it supports with_message given a string matches when validation uses given message matches when validation uses given message that has an interpolated variable does not match when validation uses a message but it is not same as given does not match when validation uses the default message instead of given message given a regex matches when validation uses a message that matches the regex does not match when validation uses the default message instead of given message does not match when validation uses a message but it does not match regex given nil is as if with_message had never been called not having been qualified matches when the validation uses the default message and it is overridden in i18n matches when the validation uses the default message does not match when the validation is configured with an overridden message behaves like it supports allow_nil matches when the validation specifies allow_nil allows other qualifiers to be chained afterward it supports ignoring_interference_by_writer when the writer method for the attribute changes incoming values and the value change causes a test failure lists how the value got changed in the failure message when the record has no validations passes when used in the negative fails when used in the positive with an appropriate failure message Shoulda::Matchers::ActiveRecord::AssociationMatchers::ModelReflection delegates other methods to the given Reflection object #association_relation when the reflection object has a #scope method when the scope is nil returns an empty scope when the scope is a block passes the object that has the association to the block executes the block in the context of an empty scope #through? returns true if the reflection is for a has_many :through association returns false if not #associated_class returns the model that the association refers to #join_table_name when the association was defined with a :join_table option returns the value of the option when the association was not defined with :join_table returns the default join_table that ActiveRecord generates Shoulda::Matchers.word_wrap can wrap a numbered list considers punctuation as part of a word re-wraps numbered lists using x) instead of x. as the leader can wrap a numbered list, using x) instead of x. as the leader re-wraps entire paragraphs re-wraps numbered lists can wrap multiple paragraphs does not break at the maximum line length, but afterward does not split words up when wrapping doesn't mess with indented blocks can wrap a bulleted list re-wraps bulleted lists can wrap a simple paragraph given a string with a word longer than the max character limit which is followed by some text leaves the word on its own line which stands on its own simply returns the string which is preceded by some text leaves the word on its own line when :indent is given uses the given indentation level when determining where to wrap lines Shoulda::Matchers::Doublespeak::DoubleImplementationRegistry .find raises an ArgumentError if not given a registered implementation returns ProxyImplementation if given :proxy returns an instance of StubImplementation if given :stub Shoulda::Matchers::ActionController::FilterParamMatcher rejects filtering an unfiltered parameter accepts filtering a filtered parameter accepts filtering a parameter matching a filtered regex Shoulda::Matchers::ActiveRecord::AcceptNestedAttributesForMatcher rejects a missing declaration accepts an existing declaration limit rejects a false value accepts a correct value allow_destroy rejects an invalid truthy value accepts a valid falsey value rejects an invalid falsey value accepts a valid truthy value update_only rejects an invalid falsey value accepts a valid truthy value accepts a valid falsey value rejects an invalid truthy value Shoulda::Matchers::ActionController::RenderWithLayoutMatcher given a context with layouts accepts that layout in that context a controller that renders a partial rejects rendering with a layout a controller that renders without a layout rejects rendering with a layout a controller that renders with a layout accepts rendering with any layout accepts rendering with that layout rejects rendering with another layout Shoulda::Matchers::Routing::RouteMatcher given a controller and action specified as individual options when the actual route has a param and the expected params do not match the actual params rejects and the expected params include that param accepts but its value was not specified as a string accepts, treating it as a string when the existing route has a glob segment and a param is given which represents the segment accepts and no param is given which represents the segment rejects when the given path, controller, and action match an existing route but the method does not rejects when the given method, controller, and action match an existing route but the path does not rejects when the given method, path, controller, and action do not match an existing route rejects when the given method, path, controller, and action match an existing route accepts and the expected controller is specified as a symbol accepts and the expected action is specified as a symbol accepts when a port is specified when the route is not constrained to the same port rejects when the route is constrained to the same port accepts when the given method, path, and controller match an existing route but the action does not rejects when the actual route has a default param whose value is a symbol and the expected params include a value for it as a string accepts as a symbol accepts when the given method and path match an existing route but the controller does not rejects given a controller and action joined together in a string when the given method, path, controller, and action do not match an existing route rejects when the given method and path match an existing route but the controller does not rejects when the actual route has a param and the expected params include that param accepts but its value was not specified as a string accepts, treating it as a string and the expected params do not match the actual params rejects when the existing route has a glob segment and a param is given which represents the segment accepts and no param is given which represents the segment rejects when the actual route has a default param whose value is a symbol and the expected params include a value for it as a symbol accepts as a string accepts when the given method, path, and controller match an existing route but the action does not rejects when the given method, path, controller, and action match an existing route accepts and the expected action is specified as a symbol accepts and the expected controller is specified as a symbol accepts when a port is specified when the route is not constrained to the same port rejects when the route is constrained to the same port accepts when the given path, controller, and action match an existing route but the method does not rejects when the given method, controller, and action match an existing route but the path does not rejects Shoulda::Matchers::ActionController::SetSessionOrFlashMatcher with #[] produces the right description in the negative if the given key is present in the store produces the correct failure message in the positive if the given key is not present in the store rejects produces the correct failure message if the given key is present in the store accepts with #to given a dynamic value requires in_context to be specified beforehand produces the right description in the negative if the value evaluated in the context is present in the store produces the correct failure message in the positive if the value evaluated in the context is not present in the store produces the correct failure message rejects if the value evaluated in the context is present in the store accepts given a regexp produces the right description in the positive if the given value is not present in the store produces the correct failure message rejects if the given value is present in the store accepts in the negative if the given value is present in the store produces the correct failure message given a static value produces the right description in the positive if the given value is present in the store accepts given a value of false accepts given a value of nil accepts if the given value is not present in the store produces the correct failure message rejects in the negative if the given value is present in the store produces the correct failure message without any qualifiers produces the right description in the negative if the given key is present in the store produces the correct failure message in the positive if the store is empty rejects produces the correct failure message if the store is not empty accepts with #[] + #to given a dynamic value produces the right description in the negative if the value evaluated in the context is present in the store produces the correct failure message in the positive if the value evaluated in the context is present in the store accepts if the value evaluated in the context is not present in the store produces the correct failure message rejects given a static value produces the right description in the negative if the given value is present in the store produces the correct failure message in the positive if the given value is not present in the store rejects produces the correct failure message if the given value is present in the store accepts Shoulda::Matchers::ActionController::CallbackMatcher #use_around_action behaves like CallbackMatcher matches when a around hook is in place does not match when a around hook is missing failure message includes the filter kind and name that was expected description includes the filter kind and name failure message when negated includes the filter kind and name that was expected #use_before_action behaves like CallbackMatcher does not match when a before hook is missing matches when a before hook is in place failure message when negated includes the filter kind and name that was expected failure message includes the filter kind and name that was expected description includes the filter kind and name #use_after_action behaves like CallbackMatcher matches when a after hook is in place does not match when a after hook is missing description includes the filter kind and name failure message includes the filter kind and name that was expected failure message when negated includes the filter kind and name that was expected Shoulda::Matchers::ActiveRecord::HaveAttachedMatcher have_one_attached when the attached exists on the model matches and the writer attribute does not exist matches and the attachments association does not exist matches and the eager loading scope does not exist matches and the reader attribute does not exist matches and the blobs association is invalid matches #description returns the message with the name of the association have_many_attached when the attached exists on the model matches and the eager loading scope does not exist matches and the reader attribute does not exist matches and the writer attribute does not exist matches and the attachments association does not exist matches and the blobs association is invalid matches #description returns the message with the name of the association Shoulda::Matchers::Doublespeak::DoubleCollection #activate replaces all registered methods with doubles #register_proxy calls Double.new correctly calls DoubleImplementationRegistry.find correctly if a double has already been registered for the method does not call Double.new again returns the same Double #deactivate restores the original methods that were doubled #calls_to returns an empty array if the method has never been doubled returns all calls to the given method #register_stub calls DoubleImplementationRegistry.find correctly calls Double.new correctly if a double has already been registered for the method does not call Double.new again returns the same Double Finished in 12 minutes 41 seconds (files took 16.98 seconds to load) 2485 examples, 0 failures Randomized with seed 59612 + sed -i '/add_gem '\''spring-commands-rspec'\''/ s/^/#/' spec/support/acceptance/helpers/step_helpers.rb + sed -i '/updating_bundle do |bundle|/a \ bundle.add_gem '\''spring'\''' spec/support/acceptance/helpers/step_helpers.rb + sed -i '/updating_bundle do |bundle|/a \ bundle.remove_gem '\''capybara'\''' spec/support/acceptance/helpers/step_helpers.rb + sed -i '/updating_bundle do |bundle|/a \ bundle.remove_gem '\''selenium-webdriver'\''' spec/support/acceptance/helpers/step_helpers.rb + sed -i '/updating_bundle do |bundle|/a \ bundle.remove_gem '\''debug'\''' spec/support/acceptance/helpers/step_helpers.rb + bundle exec rspec spec/acceptance Randomized with seed 9755 shoulda-matchers integrates with Rails [DEPRECATED] `Bundler.with_clean_env` has been deprecated in favor of `Bundler.with_unbundled_env`. If you instead want the environment before bundler was originally loaded, use `Bundler.with_original_env` (called at /builddir/build/BUILD/spec/support/acceptance/helpers/command_helpers.rb:26) in a project that uses Spring in a project that combines both RSpec and Test::Unit in a project that uses the default test framework in a project that uses RSpec shoulda-matchers has independent matchers, specifically delegate_method and integrates with a Ruby application that uses the default test framework and integrates with a Ruby application that uses RSpec shoulda-matchers integrates with an ActiveModel project when using active model library and loads without errors allows use of inclusion matcher from active model library shoulda-matchers integrates with active record when using both active_record and active_model libraries allows the use of matchers from both libraries shoulda-matchers integrates with multiple libraries when using both active_record and active_model libraries allows the use of matchers from both libraries Finished in 2 minutes 1.7 seconds (files took 0.32281 seconds to load) 10 examples, 0 failures Randomized with seed 9755 ~/build/BUILD/shoulda-matchers-5.1.0 + popd + RPM_EC=0 ++ jobs -p + exit 0 Processing files: rubygem-shoulda-matchers-5.1.0-6.fc40.noarch Provides: rubygem(shoulda-matchers) = 5.1.0 rubygem-shoulda-matchers = 5.1.0-6.fc40 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ruby(rubygems) rubygem(activesupport) >= 5.2.0 Processing files: rubygem-shoulda-matchers-doc-5.1.0-6.fc40.noarch Provides: rubygem-shoulda-matchers-doc = 5.1.0-6.fc40 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rubygem-shoulda-matchers-5.1.0-6.fc40.noarch Wrote: /builddir/build/RPMS/rubygem-shoulda-matchers-5.1.0-6.fc40.noarch.rpm Wrote: /builddir/build/RPMS/rubygem-shoulda-matchers-doc-5.1.0-6.fc40.noarch.rpm Child return code was: 0