{"id":15577993,"url":"https://github.com/rlmoser99/ruby_rspec_top","last_synced_at":"2025-04-12T04:04:43.030Z","repository":{"id":52312842,"uuid":"267990444","full_name":"rlmoser99/ruby_rspec_TOP","owner":"rlmoser99","description":"A tutorial that I developed for students at The Odin Project to learn RSpec. ","archived":false,"fork":false,"pushed_at":"2021-04-30T20:46:29.000Z","size":447,"stargazers_count":2,"open_issues_count":1,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-22T23:25:38.348Z","etag":null,"topics":["rspec"],"latest_commit_sha":null,"homepage":"https://github.com/TheOdinProject/ruby_testing","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rlmoser99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-30T01:51:51.000Z","updated_at":"2021-03-22T02:54:24.000Z","dependencies_parsed_at":"2022-08-22T14:20:21.025Z","dependency_job_id":null,"html_url":"https://github.com/rlmoser99/ruby_rspec_TOP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlmoser99%2Fruby_rspec_TOP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlmoser99%2Fruby_rspec_TOP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlmoser99%2Fruby_rspec_TOP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlmoser99%2Fruby_rspec_TOP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rlmoser99","download_url":"https://codeload.github.com/rlmoser99/ruby_rspec_TOP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228864258,"owners_count":17983315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rspec"],"created_at":"2024-10-02T19:03:54.884Z","updated_at":"2024-12-09T09:20:36.995Z","avatar_url":"https://github.com/rlmoser99.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RSpec Playground (no longer maintained)\nThis repository was a contribution to an open-source web development curriculum called [The Odin Project](https://www.theodinproject.com/). It is included in this [testing lesson](https://www.theodinproject.com/courses/ruby-programming/lessons/testing-your-ruby-code) and is maintained on their [github](https://github.com/TheOdinProject/ruby_testing).\n\n## Purpose\nThe purpose of this repository is to provide 'hands-on' RSpec lessons. These lessons were designed to equip students to write tests for their Tic-Tac-Toe and to TDD their Connect Four.\n\n## Topics\nThese lessons cover many topics, but it does not cover everything that RSpec is capable of testing. You should expect to learn foundational knowledge on the following topics:\n- Let Variables\n- Implicit and Explicit Subject\n- A variety of built-in-matchers\n- Setting values for instance variables to create test conditions\n- The 'Arrange, Act \u0026 Assert' testing pattern\n- Stubs, Mocks, and Doubles\n- Test Driven Development\n\n## Set-Up\nTo install RSpec, run `bundle install` from the root directory of this project.\n\n## How to use this playground\nThese lessons are numbered 01 - 16, in the **spec** folder. Start with the file: \u003ccode\u003espec/01_string_spec.rb\u003c/code\u003e. The first 9 lessons are self-contained in the spec file. Starting with lesson 10, there will be 1-3 corresponding files in the \u003ccode\u003elib\u003c/code\u003e folder.\n\nIf you get stuck on a lesson, there is a corresponding answer file located in the \u003ccode\u003espec_answer\u003c/code\u003e folder.\n\n## Running Tests\nSince this repository is full of tests, it is recommended to only run \u003ccode\u003erspec\u003c/code\u003e on one individual file at at time. For example, to run the first test file from the root of this directory:\n\n\u003cpre\u003e\u003ccode\u003erspec spec/01_string_spec.rb\u003c/code\u003e\u003c/pre\u003e\n\nTip: If you have tab completion set-up, you can hit 'tab' after the first few characters of the file name.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlmoser99%2Fruby_rspec_top","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frlmoser99%2Fruby_rspec_top","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlmoser99%2Fruby_rspec_top/lists"}