diff --git a/.rspec b/.rspec index c99d2e7396..3e8344d6ff 100644 --- a/.rspec +++ b/.rspec @@ -1 +1,2 @@ --require spec_helper +--format doc \ No newline at end of file diff --git a/README.md b/README.md index 7fdee830a9..57090f15bc 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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** diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 7c096c043f..9d899c5e86 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -50,7 +50,7 @@ DatabaseCleaner.clean end - config.after(:suite, js: true) do + config.after(:suite) do DatabaseCleaner.clean_with(:truncation) end end