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

String methods #4

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

String methods #4

wants to merge 2 commits into from

Conversation

defeated
Copy link

Hi!

I went to use "something".diff_by_char() and realized that String had only been extended with the diff() method so far.

Added:

"something".diff_by_char("something else")
"something".diff_by_word("something else")
"something".diff_by_line("something else")

(And a few related specs.)

(Note: Also minor update to spec_helper.rb so it stops warning about deprecated rspec2 syntax.)

"DEPRECATION WARNING: you are using deprecated behaviour that will
be removed from a future version of RSpec.

/Users/defeated/Desktop/differ/spec/spec_helper.rb:7:in `<top (required)>'

* Spec::Runner.configure is deprecated.
* please use RSpec.configure instead."
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.

1 participant