DEV: Use proper wording for contexts in specs

This commit is contained in:
Loïc Guitaut
2022-07-27 18:14:14 +02:00
committed by Loïc Guitaut
parent 02987e05d5
commit 3eaac56797
337 changed files with 2172 additions and 2723 deletions

View File

@ -3,7 +3,6 @@
require 'imap/sync'
RSpec.describe Imap::Sync do
before do
SiteSetting.tagging_enabled = true
SiteSetting.pm_tags_allowed_for_groups = "1|2|3"
@ -39,7 +38,7 @@ RSpec.describe Imap::Sync do
)
end
context 'no previous sync' do
describe 'no previous sync' do
let(:from) { 'john@free.fr' }
let(:subject) { 'Testing email post' }
let(:message_id) { "#{SecureRandom.hex}@example.com" }
@ -169,7 +168,7 @@ RSpec.describe Imap::Sync do
end
end
context 'previous sync' do
describe 'previous sync' do
let(:subject) { 'Testing email post' }
let(:first_from) { 'john@free.fr' }
@ -527,7 +526,7 @@ RSpec.describe Imap::Sync do
end
context 'invalidated previous sync' do
describe 'invalidated previous sync' do
let(:subject) { 'Testing email post' }
let(:first_from) { 'john@free.fr' }