Giter VIP home page Giter VIP logo

week-04's Introduction

Week 4

Introduction

This week we take another step towards Test-Driven Development. Similar to how you were asked to make changes the Structs and OpenStructs to make the tests pass. Here again your job is to define the functionality of the methods that are described in the test suite.

Outline

Exercise

  • Fork and clone this repository
  • Fix the tests on a branch
  • Push your changes to Github on that branch

Reading

Exercise

The exercise are laid out in the same way as before, however there are still some subtle differences so I implore you to read the following closely.

  • Fork and clone this repository
  • Run Bundler
  • Run the tests / Setup Guard
  • Switch to the 'solutions' branch
  • Write the methods required to make the examples pass in each of the associated files in the lib directory.
  • Commit your changes to the 'solutions' branch
  • Push your 'solutions' branch up to Github

Switch to the 'solutions' branch

Usually working on the master branch is acceptable behavior. However, there is a common workflow pattern to create a branch and to put work on that branch. Branching in git is easy.

Before you commit any changes that solve this week's exercise I want you to create a solutions branch.

Create the branch

$ git branch solutions

Move to that branch

$ git checkout solutions

Write the methods required to make the examples pass in each of the associated files in the lib directory

A difference from last week, is that you should define the methods in the lib folder in the file that matches the name of spec folder. This is so the implementation of your methods are independent of test files.

That means you will will be writing code that fixes the find_quote_spec.rb in lib/find_quote.rb. Fix the display_superheroes_spec.rb in display_superheroes.rb ...

Commit your changes to the 'solutions' branch

When you created and switched to the solutions branch all work that you add and commit will automatically be added to the solutions branch.

Push your 'solutions' branch up to Github

When you are ready to push your solutions to Github you will specify your new branch name.

$ git push origin solutions

This is nearly identical to the command you ran previously the exception being the word master is now replaced with 'solutions`.

week-04's People

Contributors

trevmex avatar

Stargazers

Asher Surendran avatar

Watchers

Asher Surendran 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.