As a user,
In order to see my bookmarks stored on the database
I want to show a list of bookmarks
Nouns: bookmarks
Verbs: show list of bookmarks
As a user,
In order to keep my bookmarks current
I want to add bookmarks
Nouns: bookmarks
Verbs: add bookmarks
- Connect to
psql
- Create the database using the command
CREATE DATABASE bookmark_manager;
- Connect to the database using the commande
\c bookmark_manager;
- Run the query saved in the file
/db/migrations/1_create_bookmarks_table.sql
- Connect to
psql
- Create the database using the command
CREATE DATABASE bookmark_manager_test;
- Connect to the database using the commande
\c bookmark_manager_test;
- Run the query saved in the file
/db/migrations/1_create_bookmarks_table.sql
- In the
bookmarks.rb
file use a conditionalENV['RACK_ENV'] == 'test'
to change the connection being made so that whenrspec
is running it connects to thebookmarks_manager_test
database.