Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo and details #29156

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

OmegaGinga
Copy link

@OmegaGinga OmegaGinga commented Dec 6, 2024

Because

Linked the questions of the Knowledge Check to the tag document, this will help to speed up where the students can find the information or the answer to the questions. Additionally, merged the latest updates from the upstream main branch to keep this branch up to date.

This PR

In ruby/automated_testing/rspec_part_two_code_sharing.md I've made the link of the questions to the document.

Issue

Additional Information

Pull Request Requirements

  • I have thoroughly read and understand The Odin Project curriculum contributing guide
  • The title of this PR follows the location of change: brief description of change format, e.g. Intro to HTML and CSS lesson: Fix link text
  • The Because section summarizes the reason for this PR
  • The This PR section has a bullet point list describing the changes in this PR
  • If this PR addresses an open issue, it is linked in the Issue section
  • If any lesson files are included in this PR, they have been previewed with the Markdown preview tool to ensure it is formatted correctly
  • If any lesson files are included in this PR, they follow the Layout Style Guide

@github-actions github-actions bot added the Content: Ruby Involves the Ruby course label Dec 6, 2024
@wise-king-sullyman wise-king-sullyman requested review from a team and ZachBaird and removed request for a team December 6, 2024 20:05
Comment on lines +9 to +10
procs
enumerables
Copy link
Member

@xandora xandora Dec 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Because and This PR sections of the PR don't explain what this change is doing. Can you elaborate on this?

@@ -41,7 +41,7 @@ end

Next, create a test file for the user class in the spec directory named `user_spec.rb` and write the following tests for the `User` class to exercise the name, email and age attributes:

~~~ruby
~~~~ruby
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code fences need to be wrapped with 3 tildes, not 4. This seems like an incorrect change.

@@ -3,6 +3,7 @@
So far you’ve been learning how to test code that you’ve written, but there’s a popular development process that flips that concept on its head. Rather than writing code, manually testing it until you get it working, then writing a test to make sure it stays working; you can write the test **before** the code, so that you don’t have to waste *any* time manually testing. Test Driven Development is the name of this inverted development process.

### Learning Outcomes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine.

@@ -30,6 +31,7 @@ This development cycle is known as red-green-refactor, and it’s at the heart o
One key aspect of the red-green-refactor cycle that *isn’t* in the name, is that the code you write to go from `red` to `green` should be the **minimum** amount required to pass the test. If you find that the functionality you’re adding actually does *more* than is being tested, that is a sign that your method is likely doing too much, or possibly that your tests aren’t testing all of the right functionality.

#### TDD Examples

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine.

@@ -210,6 +212,7 @@ TODO: Exercise: TDD a value object
TODO: Exercise: TDD a class that has a collaborator which doesn't exist yet using mocks

### Additional Resources

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine.

Comment on lines +224 to +227
- [What does it mean for code to be test **driven**?](#what-is-tdd-and-why-do-it)
- [List four different advantages of TDD](#what-is-tdd-and-why-do-it)
- [What is the 3 part development cycle used for TDD?](#what-is-tdd-and-why-do-it)
- [How much code should be written when going from the `red` state to the `green` state of the red-green-refactor cycle?](#what-is-tdd-and-why-do-it)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having link backs in the Knowledge Check section is good, but if they all point to the same section, then they might cause confusion when they all end up at the same place.

Additionally, you've missed a period at the end of the second check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content: Ruby Involves the Ruby course
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants