Skip to content

Commit

Permalink
Update documentation with chromium driver
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelp committed Jun 1, 2020
1 parent 827f9e5 commit 44ff1df
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
--require spec_helper
--format doc
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Scaffold for social media app with Ruby on Rails

> This project consists of a basic Social Media App. The features of the project include signing up as a user and sending friend request to other users. The other users can accept or reject the friend request. On the timeline page, only the posts belonging to the signed in user and his/her firends can be viewed.
> This project consists of a basic Social Media App. The features of the project include signing up as a user and sending friend request to other users. The other users can accept or reject the friend request. On the timeline page, only the posts belonging to the signed in user and his/her friends can be viewed.
## Built With

Expand Down Expand Up @@ -39,21 +39,28 @@ Setup database with:
```



### Usage

Start server with:

```
rails server
rails s
```

Open `http://localhost:3000/` in your browser.

### Run tests

Install chromium chrome driver [link](https://chromedriver.chromium.org/downloads)

```
sudo apt-get install chromium-chromedriver
```

And then run:

```
rpsec --format documentation
rpsec
```

> All tests are contained in the rspec folder which is in the root directory of the project. To run all test type **rspec** in the terminal. To run a specific test type **rspec spec/folder_name/spec_file.rb**
Expand Down
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
DatabaseCleaner.clean
end

config.after(:suite, js: true) do
config.after(:suite) do
DatabaseCleaner.clean_with(:truncation)
end
end
Expand Down

0 comments on commit 44ff1df

Please sign in to comment.