From 3cb8221d0c33b02e233d688cde823de880885a79 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Mon, 21 Feb 2022 17:24:28 +0100
Subject: [PATCH] plural fixtures

---
 test/fixtures/communication/website/{post.yml => posts.yml} | 0
 test/fixtures/communication/{website.yml => websites.yml}   | 0
 test/integration/summernote_test.rb                         | 6 +++---
 3 files changed, 3 insertions(+), 3 deletions(-)
 rename test/fixtures/communication/website/{post.yml => posts.yml} (100%)
 rename test/fixtures/communication/{website.yml => websites.yml} (100%)

diff --git a/test/fixtures/communication/website/post.yml b/test/fixtures/communication/website/posts.yml
similarity index 100%
rename from test/fixtures/communication/website/post.yml
rename to test/fixtures/communication/website/posts.yml
diff --git a/test/fixtures/communication/website.yml b/test/fixtures/communication/websites.yml
similarity index 100%
rename from test/fixtures/communication/website.yml
rename to test/fixtures/communication/websites.yml
diff --git a/test/integration/summernote_test.rb b/test/integration/summernote_test.rb
index 7f70e6f73..9638ccacf 100644
--- a/test/integration/summernote_test.rb
+++ b/test/integration/summernote_test.rb
@@ -5,7 +5,7 @@ class SummernoteTest < ActiveSupport::TestCase
   HTML_DEHYDRATED = "<action-text-attachment sgid=\"sgid\" content-type=\"image/jpeg\" url=\"http://localhost:3000/dan-gold.jpeg\" filename=\"test.jpg\" filesize=\"352931\" width=\"588\" height=\"746\" previewable=\"true\" presentation=\"gallery\"></action-text-attachment>"
 
   test "dehydrate actiontext" do
-    post = communication_website_post(:test_post)
+    post = communication_website_posts(:test_post)
     post.text = HTML_HYDRATED
     post.save
     post.reload
@@ -13,10 +13,10 @@ class SummernoteTest < ActiveSupport::TestCase
   end
 
   test "rehydrate actiontext" do
-    post = communication_website_post(:test_post)
+    post = communication_website_posts(:test_post)
     post.text = HTML_DEHYDRATED
     post.save
     post.reload
-    assert_equal HTML_HYDRATED, communication_website_post(:test_post).text.to_s
+    assert_equal HTML_HYDRATED, communication_website_posts(:test_post).text.to_s
   end
  end
-- 
GitLab