Code Monkey home page Code Monkey logo

sep1-test's Introduction

Instructions for coding test

You will need a desktop machine with Ruby 2.1.2 and Postgres installed. If either of these are not possible, after cloning the repo make the necessary changes to Gemfile and config/database.yml. The test does not depend on any Ruby 2.1.x or database-specific code.

To install

git clone [email protected]:evvnt/sep1-test.git
cd sep1-test
./bin/setup

The exercise

In this exercise, you'll be cleaning up controller called ExpensesController. This controller can do a few things:

  • List out existing expenses for a user
  • Filter expenses by amount and approval status
  • Create a new expense
  • Email an admin after expenses are created
  • Change name or amount unapproved expenses
  • Mark expenses as deleted

Your task is to refactor the controller code.

  • All public methods should be as RESTful as possible
  • Make sure the only logic that lives in your controller is related to handling your requests and responses

You may add new classes of any description to assist you. Any new classes should have accompanying tests.

Make sure all tests are passing by running:

rake

There is no time limit for this test.

Test is based on an exercise provided on Upcase by Thoughtbot.

sep1-test's People

Contributors

scottmatthewman avatar r00k avatar nulty avatar

Watchers

James Cloos 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.