40 lines
1.7 KiB
Diff
40 lines
1.7 KiB
Diff
|
|
From ee069af88dd32821c83126a73bc426a30237972c Mon Sep 17 00:00:00 2001
|
||
|
|
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
|
||
|
|
Date: Tue, 9 Feb 2021 16:13:41 +0100
|
||
|
|
Subject: [PATCH] Disable test failing due to changes in Rails 6.1.
|
||
|
|
|
||
|
|
---
|
||
|
|
spec/unit/shoulda/matchers/active_model/helpers_spec.rb | 2 ++
|
||
|
|
.../shoulda/matchers/active_record/association_matcher_spec.rb | 2 ++
|
||
|
|
2 files changed, 4 insertions(+)
|
||
|
|
|
||
|
|
diff --git a/spec/unit/shoulda/matchers/active_model/helpers_spec.rb b/spec/unit/shoulda/matchers/active_model/helpers_spec.rb
|
||
|
|
index 8246997c..1f508e3f 100644
|
||
|
|
--- a/spec/unit/shoulda/matchers/active_model/helpers_spec.rb
|
||
|
|
+++ b/spec/unit/shoulda/matchers/active_model/helpers_spec.rb
|
||
|
|
@@ -81,6 +81,8 @@ describe Shoulda::Matchers::ActiveModel::Helpers do
|
||
|
|
|
||
|
|
context 'if ActiveModel::Errors#generate_message behavior has changed' do
|
||
|
|
it 'provides the right error message for validate_presence_of' do
|
||
|
|
+ pending "Rails 6.1 change?"
|
||
|
|
+
|
||
|
|
stub_active_model_message_generation(
|
||
|
|
type: :blank,
|
||
|
|
message: 'Behavior has diverged.',
|
||
|
|
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 2ad3c1d1..290deb0b 100644
|
||
|
|
--- a/spec/unit/shoulda/matchers/active_record/association_matcher_spec.rb
|
||
|
|
+++ b/spec/unit/shoulda/matchers/active_record/association_matcher_spec.rb
|
||
|
|
@@ -983,6 +983,8 @@ Expected Parent to have a has_many association called children through conceptio
|
||
|
|
end
|
||
|
|
|
||
|
|
it 'accepts an association with a valid :source option' do
|
||
|
|
+ pending "Rails 6.1 require :through option"
|
||
|
|
+
|
||
|
|
expect(having_many_children(source: :user)).
|
||
|
|
to have_many(:children).source(:user)
|
||
|
|
end
|
||
|
|
--
|
||
|
|
2.30.0
|
||
|
|
|