diff --git a/test/fixtures/communication/website/post.yml b/test/fixtures/communication/website/post.yml index 0c08b41e69420d512b4c98f410d201cc8bf91619..acb62a96a95f0fcedbffa49bef57dd388b1d0e8e 100644 --- a/test/fixtures/communication/website/post.yml +++ b/test/fixtures/communication/website/post.yml @@ -3,5 +3,3 @@ test: website: test title: Test slug: test - text_new: > - <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> diff --git a/test/models/summernote_test.rb b/test/integration/summernote_test.rb similarity index 90% rename from test/models/summernote_test.rb rename to test/integration/summernote_test.rb index e60cf826899d9e90109274f064418fed0ea4c2cd..43cef8518107b3fda71fbb281c2114fd5cbc0122 100644 --- a/test/models/summernote_test.rb +++ b/test/integration/summernote_test.rb @@ -13,6 +13,10 @@ class SummernoteTest < ActiveSupport::TestCase end test "rehydrate actiontext" do + post = communication_website_post(:test) + post.text_new = HTML_DEHYDRATED + post.save + post.reload assert_equal HTML_HYDRATED, communication_website_post(:test).text_new.to_s end end diff --git a/test/models/variant_service_test.rb b/test/integration/variant_service_test.rb similarity index 100% rename from test/models/variant_service_test.rb rename to test/integration/variant_service_test.rb diff --git a/test/models/wordpress_test.rb b/test/integration/wordpress_test.rb similarity index 100% rename from test/models/wordpress_test.rb rename to test/integration/wordpress_test.rb diff --git a/test/integration/.keep b/test/models/.keep similarity index 100% rename from test/integration/.keep rename to test/models/.keep