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

added comments to "it" #36

Merged
merged 5 commits into from
Jul 18, 2024
Merged

Conversation

fartem
Copy link
Contributor

@fartem fartem commented Jul 16, 2024

I think I understood the idea correctly, but open to other views.

Closed #29.

@@ -12,7 +12,8 @@ def run
instance_eval(&@block)
end

def it(&)
def it(comment = nil, &)
@comment = comment
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we going to have single comment to all 'its' in a describe block? Looks like we should have separated

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean you need to comment out the remaining blocks?

Copy link
Contributor

@sergio-fry sergio-fry Jul 17, 2024

Choose a reason for hiding this comment

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

No. If we have multiple 'it'-s in a describe block, the last 'it' should override @comment, so the only one comment is going to be stored.

describe "test" do
  it "this one is going to be removed" do
  end

  it "this one will be saved" do
  end
end

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, I understand. I'll fix it soon.

Copy link
Contributor

@sergio-fry sergio-fry left a comment

Choose a reason for hiding this comment

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

build is failing

@fartem
Copy link
Contributor Author

fartem commented Jul 17, 2024

build is failing

Build failed because after last commit in main we have exit code with error.

@fartem
Copy link
Contributor Author

fartem commented Jul 18, 2024

@sergio-fry right now on every push we have gem publish action. Maybe I will fix it in another PR?

@sergio-fry sergio-fry merged commit 2e429b8 into HeavyTechRuby:main Jul 18, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add comment to it as argument
2 participants