about summary refs log tree commit diff
path: root/spec/models/account
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-14 10:31:28 +0100
committerGitHub <noreply@github.com>2022-11-14 10:31:28 +0100
commit72335694744da87cbfaff20992cb36817f6f8a60 (patch)
tree55c1b799be04cf83f425414dce762bf9403e2b85 /spec/models/account
parent81b1d32d5b618daa4003b8de8292ae4dd3e656f6 (diff)
parentc31e756644120cab650452e9d1c00a1e2f26ade4 (diff)
Merge pull request #1923 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'spec/models/account')
-rw-r--r--spec/models/account/field_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/models/account/field_spec.rb b/spec/models/account/field_spec.rb
index fcb2a884a..b4beec048 100644
--- a/spec/models/account/field_spec.rb
+++ b/spec/models/account/field_spec.rb
@@ -89,6 +89,14 @@ RSpec.describe Account::Field, type: :model do
           expect(subject.verifiable?).to be false
         end
       end
+      
+      context 'for text which is blank' do
+        let(:value) { '' }
+
+        it 'returns false' do
+          expect(subject.verifiable?).to be false
+        end
+      end
     end
 
     context 'for remote accounts' do
@@ -133,6 +141,14 @@ RSpec.describe Account::Field, type: :model do
           expect(subject.verifiable?).to be false
         end
       end
+      
+      context 'for text which is blank' do
+        let(:value) { '' }
+
+        it 'returns false' do
+          expect(subject.verifiable?).to be false
+        end
+      end
     end
   end
 end