Skip to content

numoonchld/ruby-tdd-with-rspec

Repository files navigation

My Completion Certificate

Notes

  • TDD with RSpec
  • Goal: run spec files with RSpec for TDD
    • basics of Ruby with RSpec gem

Examples to run spec files

  • rspec 01_hello/hello_spec.rb
  • rspec 02_student/student_spec.rb
  • ruby 07_blackjack/blackjack_runner.rb

General Ruby notes

  • @@products.map(&:name) is the same as
    • @@products.map { |item| item.name }

Initial Setup

  • install and configure rbenv
  • create .ruby-version file and populate with ruby version