Balaji Vajjala's Blog

A DevOps Blog from Trenches

01

  • 1.3 Change an existing automated test
    • Learning Objectives
    • Change an existing automated test
    • Make changes to an automated test and commit to GitHub.

1.3 Change an existing automated test

Learning Objectives

By the end of this lesson you will be able to:

  • Change an existing automated test and commit it to GitHub.

Change an existing automated test

Slide1

Make changes to an automated test and commit to GitHub.

  1. From the root directory of your EC2 instance change directory to sample_app.
  2. Open the test file as shown below.

    “` $ sudo vim users_controller_spec.rb

    “`

  3. Make a modification to the contents of the file and save it.

  4. From the root directory of your EC2 instance change directory to sample_app.
  5. Add the file in Git

    “` $ git add .

    “`

  6. Commit the file to Git

    “` $ git commit -m “Modified test script”

    “`

  7. Push it to the Git master.

    “` $ git push

    “`