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 7f70e6f73852a7a75b42295792fac99ba5ed1f81..9638ccacf98ce24ab9a1a1227d09b319f35eb579 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