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

Refactored url-related activities in the Googl::Url class #9

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

Conversation

dfucci
Copy link

@dfucci dfucci commented Dec 3, 2014

Hi,
I noticed that Googl.expand/shorten deal with checking whether a url is valid or not. I think that's a code smell that might violate the single responsibility principle.
I have refactored the validity check of the string representing the url in the Url class. So far it does only that but later could contain other url-related responsibilities.

@johnnyshields
Copy link
Contributor

👍

end
# it "should return error for required url" do
#lambda { Googl.expand }.should raise_error(ArgumentError, /URL to expand is required/)
#end
Copy link
Member

Choose a reason for hiding this comment

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

Why the test is commented?

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.

3 participants