Projects
Factory:RISC-V:Ruby
rubygem-shoulda-matchers
_service:tar_scm:rubygem-shoulda-matchers-4.5.1...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:rubygem-shoulda-matchers-4.5.1-Disable-CPK-test-cases-due-to-Rails-6.1-compatibilit.patch of Package rubygem-shoulda-matchers
From 84aff7aa2d9e5edaef43e980592e96d0fd03ce7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com> Date: Tue, 9 Feb 2021 19:06:19 +0100 Subject: [PATCH] Disable CPK test cases due to Rails 6.1 compatibility. Relates #1396. --- .../matchers/active_record/association_matcher_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/unit/shoulda/matchers/active_record/association_matcher_spec.rb b/spec/unit/shoulda/matchers/active_record/association_matcher_spec.rb index 290deb0b..1e1d2444 100644 --- a/spec/unit/shoulda/matchers/active_record/association_matcher_spec.rb +++ b/spec/unit/shoulda/matchers/active_record/association_matcher_spec.rb @@ -1446,6 +1446,8 @@ Expected Parent to have a has_many association called children through conceptio end it 'rejects an association with a valid :class_name and :foreign_key option (CPK), but no columns' do + pending "Rails 6.1 compatibilty" + define_model :person_detail define_model :person do has_one :detail, class_name: 'PersonDetail', foreign_key: %i[company_id person_detail_id] @@ -1461,6 +1463,8 @@ Expected Parent to have a has_many association called children through conceptio end it 'accepts an association with a valid :class_name and :foreign_key option (CPK)' do + pending "Rails 6.1 compatibility" + define_model :person_detail, company_id: :integer, person_detail_id: :integer define_model :person do has_one :detail, class_name: 'PersonDetail', foreign_key: %i[company_id person_detail_id] -- 2.30.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2