In this activity, we will be making controller tests—automated tests to detect bugs in how our app processes and responds to HTTP requests.
For the activity, we will work with a limerick (poem) authoring and sharing app, LimerIQ: https://github.com/human-se/limeriq-f23
Clone the example repo:
git clone git@github.com:human-se/limeriq-f23.git testing-activity-app
cd
into the working tree.
code .
to open the project in VS Code.
bundle install
to ensure that the project Ruby gems are installed.
rails db:migrate:reset
to reset and initialize the database.
rails db:seed
to add seed data to the database.
rails s
to run the development web server.
Open http://localhost:3000 in a web browser.
The seed data includes two users and their respective limericks:
alice@email.com
, password
bob@email.com
, password
Try using the app to get a sense for its features. You can sign in as either of the above users.
Start the activity!