Uploaded image for project: 'Archive of Our Own'
  1. AO3-4707

Improve coverage for related works controller

    Details

    • Type: Improvement
    • Status: Deployed
    • Priority: Medium
    • Resolution: DeployedToBeta
    • Affects Version/s: 0.9.165
    • Fix Version/s: 0.9.171
    • Milestone:
      Internal 0.9
    • Difficulty:
      Medium
    • Components:
      AutomatedTests

      Description

      controllers/related_works_controller currently has 54% test coverage on Coveralls:
      https://coveralls.io/builds/9312731/source?filename=app%2Fcontrollers%2Frelated_works_controller.rb

      We'd like better coverage.

      How to test:
      Use Coveralls to confirm that the coverage percentage has increased and the fetch action is covered:
      1. Go to https://coveralls.io/github/otwcode/otwarchive?branch=master
      2. In the "Search" field near the "Source Files on Master" heading, enter the name of the controller: controllers/related_works_controller.rb
      3. Note the number in the "Coverage" column of the table
      4. The lines of code making up def fetch should be highlighted in green

        Attachments

          Activity

            People

            • Assignee:
              sarken sarken
              Reporter:
              sarken sarken
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: