GithubHelp home page GithubHelp logo

051319-lyft-practice's Introduction

Lyft Practice

You're building an app in the style of Lyft/Uber

A lot of starter code has been filled out already, and there are RSpec tests for all of the deliverables listed. In order to mimic the way you'll be working during a code challenge, I encourage you to use the console to test your methods as you would in a code challenge environment. After you have your method written and you feel it is passing, then run the tests to confirm.

Using the console

You can use the console with ruby tools/console.rb. Inspect this file to find instances of each class instantiated with proper relationships. You may use these to test your own methods, or create your own instances as well.

Running the specs

You can run the specs with rspec. RSpec comes with a lot of different options. You may know of the --fail-fast or --f-f option which allows you to only see one failing test at a time. In addition, there is a --example or -e flag, which allows you to supply a string that is used to only run tests that contain the supplied substring within their description block. For example, if we have a test written as such:

it "runs this test with the example flag" do
	expect(true).to be(true)
end

In addition to not being a particularly helpful test, we can target only this test with the command `rspec -e runs. We can also replace the word "runs" with any string contained in the first line of the test. This is very useful for only running specific tests.

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.