https://github.com/simonewebdesign/reviews-challenge
https://github.com/simonewebdesign/reviews-challenge
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/simonewebdesign/reviews-challenge
- Owner: simonewebdesign
- License: mit
- Created: 2014-12-03T10:00:25.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-03T10:00:37.000Z (over 11 years ago)
- Last Synced: 2025-01-08T20:28:29.075Z (over 1 year ago)
- Language: Ruby
- Size: 102 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Challenge
=========
So you want to be a Revolver, can you beat our challenge? Build us an awesome ruby program to
vet all our reviews.
We have provided you with a simple Review interface class and a number of tests that you'll
need to keep/get passing. You may not edit the Review interface!
Note: We have provided you with some high level tests, feel free to write more if you want.
Product Manager Requirements
----------------------------
When I get a Review, I want it to be vetted based on the following rules.
* Offensive words
- We don't want any offensive words so avoid the following:
- Elderberry,
- Hamster,
- PHP,
- Brainfuck
- Note: The list might change if we discover any other offensive words!
* Repetition
- Repetition is often an indication of a fake review, if words are repeated three or more times
in a row it is a fake review.
* Prices
- We do not want anyone mentioning prices in their reviews, it causes problems
between different retailers.
Setup
-----
The code we have supplied should work on Ruby 1.9.3 and/or 2. In order to run the specs you will need rspec,
if you have bundler installed `bundle install` should do this for you, you may run the specs by running `rspec`.
You may use whichever version of ruby you prefer, and you are welcome to use any gems if you wish.
If you want to use some specific features of ruby 2.0 or 2.1 please check in your .ruby_version file.
And if you use some other libraries in your solution please list them in your Gemfile so we can run your code.