comfy/comfortable-mexican-sofa

View on GitHub
test/lib/seeds/pages_test.rb

Summary

Maintainability
B
5 hrs
Test Coverage

Method test_export has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def test_export
    ActiveStorage::Blob.any_instance.stubs(:download).returns(
      file_fixture("image.jpg").read
    )

Severity: Major
Found in test/lib/seeds/pages_test.rb - About 2 hrs to fix

    Method test_creation has 61 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def test_creation
        Comfy::Cms::Page.delete_all
    
        assert_difference -> { Comfy::Cms::Page.count }, 3 do
          assert_difference -> { Comfy::Cms::Translation.count }, 2 do
    Severity: Major
    Found in test/lib/seeds/pages_test.rb - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status