-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Extracting EncodedString specs from #134 #151
Merged
Merged
Commits on Jan 15, 2015
-
Test EncodedString for more undefined conversion / invalid byte sequence
- Add tests for EncodedString#to_s, #split, #<< - For each Encoding failure - assert the expected failure is raised o a String, but not on an 'EncodedString' - assert invalid bytes or unconvertale characters are replaced Currently one test is failing (pending) - EncodedString#split when the string has an invalid byte sequence incorrectly raises an ArgumentError Use 'expect_identical_string' to avoid running expectation failures through the differ, which also uses EncodingString
Configuration menu - View commit details
-
Copy full SHA for 19e967a - Browse repository at this point
Copy the full SHA 19e967aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e3231f4 - Browse repository at this point
Copy the full SHA e3231f4View commit details -
It’s actually not quite the hot spot it says it here. Encoded strings are only created when an expectation fails that uses a diffable matcher. I believe that expectations normally pass (since people usually try to keep their test suite green and only have a small number of failing specs at a time), so encoded strings are not created by every expectation.
Configuration menu - View commit details
-
Copy full SHA for d159096 - Browse repository at this point
Copy the full SHA d159096View commit details -
These cases are contrasts (as one example raises the error, but the other does not), so using `and` was confusing since they don’t do the same thing. `vs` makes more sense.
Configuration menu - View commit details
-
Copy full SHA for 012e558 - Browse repository at this point
Copy the full SHA 012e558View commit details -
Refactor encoding helpers into a custom matcher.
This reads better, provides better failure output, and is composable.
Configuration menu - View commit details
-
Copy full SHA for 0b61339 - Browse repository at this point
Copy the full SHA 0b61339View commit details -
Configuration menu - View commit details
-
Copy full SHA for 494e3e7 - Browse repository at this point
Copy the full SHA 494e3e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7c1885 - Browse repository at this point
Copy the full SHA d7c1885View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a13068 - Browse repository at this point
Copy the full SHA 9a13068View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9eeedb9 - Browse repository at this point
Copy the full SHA 9eeedb9View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.