Code Monkey home page Code Monkey logo

poodr's Introduction

by Sandi Metz

Here are my notes for each chapter of Sandi Metz's fantastic bible of good object-oriented design, which applies to ALL object-oriented languages and will be true for your whole software career. See my Markdown files (.md) for a summary of each chapter.

I rewrote all her Minitest software tests in RSpec.

Sandi's final versions of all her book code are in /lib.

To run all tests

In top level directory, to run all Minitest tests, type:

rake

To run all RSpec tests, type

rspec

2 of the tests will fail if you run them in bulk this way. However, if you test that 1 file directly, these 2 tests pass:

ruby test/ch9d_test.rb (Minitest)
rspec spec/ch9d_spec.rb (RSpec)

These 2 tests are for a mock "observer" object, to see if Gear actually sends it a message to :change. For some reason, the group rake and rspec way of running tests cannot deal with this mock object, thinking "observer" is nil.

However, testing just that 1 file will work. If you have questions/comments, please say hi:

poodr's People

Contributors

rayning0 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.