-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
lib/bddsm/describe.rb
Outdated
@@ -12,7 +12,8 @@ def run | |||
instance_eval(&@block) | |||
end | |||
|
|||
def it(&) | |||
def it(comment = nil, &) | |||
@comment = comment |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build is failing
Build failed because after last commit in |
@sergio-fry right now on every push we have gem publish action. Maybe I will fix it in another PR? |
I think I understood the idea correctly, but open to other views.
Closed #29.