Giter Club home page Giter Club logo

code-assignment's Introduction

Drover Assignment - Insurance Calculator

Drover is a vehicle rental market place where drivers can rent a vehicle from an owner, Drover facilitates these rentals. You should know this already!!

Drover needs to build a calculator to help them price their 2 new insurance products.

  1. Driver Insurance
  2. Vehicle Owner Insurance You can read about these two products in the notes found in their respective models.

Got it?? There are also some tests in the below files which should help make more sense of this spec/models/driver_insurance_spec.rb spec/models/vehicle_owner_insurance_spec.rb

Drover brought in a new freelance developer to work on this functionality. Unfortunately this developer has written some dubious code and mysteriously disappeared. Note - The tests were written by us and you can assume are accurate. We need the code to be fixed and completed, below is a summary of the remaining work. Please push the repo to your GitHub account and share the link with us

Driver Insurance Spec

  1. Make the test "calculates the number of days to charge for all the insurance for one driver" pass. You will need to complete the implementation of the method total_days_charged_for_all_driver_insurance_policies in Partner
  2. The third test passes but the functionality looks wrong, could you correct the problem here
  3. The code related to Driver Insurance (across all files) could do with refactoring. Please consider code simplicity, readability and maintainability when refactoring this code.
  4. The fourth driver insurance test is only outlined and neither test code or functionality is in place, could you write both.

Vehicle Owner Insurance Spec (optional - please leave if there is not time)

  1. The second vehicle owner insurance spec passes but the functionality is clearly wrong. Could you fix the implementation
  2. We have recently been experimenting with a new pricing system for vehicle owner insurance, version2 (described in the test) The third fleet insurance spec tests for this new pricing, but the functionality needs completing

code-assignment's People

Contributors

matvarughese avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.