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

remove support for obsolete Prime.new #63

Merged
merged 5 commits into from
May 18, 2015
Merged

remove support for obsolete Prime.new #63

merged 5 commits into from
May 18, 2015

Conversation

Nullset14
Copy link
Contributor

deprecate Prime.new

it "raises a ArgumentError when is called with some arguments" do
lambda { Prime.new(1) }.should raise_error(ArgumentError)
lambda { Prime.instance(1) }.should raise_error(ArgumentError)
end
Copy link
Member

Choose a reason for hiding this comment

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

This file should be removed and merged with instance_spec.rb.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All the cases in new_spec are covered in instance_spec.rb, so we can remove the file without merging.

Copy link
Member

Choose a reason for hiding this comment

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

Perfect then! Can you remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah! I will commit in sometime

@eregon
Copy link
Member

eregon commented May 18, 2015

Looks good! Sorry for replying late.
I think we do not need to add with Prime.instance.each in the top-level describe blocks, as Prime.instance is now the expected way to get an instance and so Prime#my_method is descriptive enough.

@Nullset14
Copy link
Contributor Author

Thank you for the review! Sure, I make the changes.

@eregon
Copy link
Member

eregon commented May 18, 2015

Thank you for your contribution, it's much appreciated!

eregon added a commit that referenced this pull request May 18, 2015
remove support for obsolete Prime.new
@eregon eregon merged commit 543fc33 into ruby:master May 18, 2015
284km added a commit to 284km/doctree that referenced this pull request Feb 26, 2018
284km added a commit to 284km/doctree that referenced this pull request Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants