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

Extend tests for external_works_controller fetch action

    Details

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

      Description

      controllers/external_works_controller currently has 53.66% test coverage on Coveralls:
      https://coveralls.io/builds/9311338/source?filename=app%2Fcontrollers%2Fexternal_works_controller.rb

      We'd like better coverage. In particular, the #fetch action needs to be covered.

      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/external_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:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: