-
Notifications
You must be signed in to change notification settings - Fork 25
Add pry function #82
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
Add pry function #82
Conversation
Example usage:
```
equality matcher
1: it "handles newlines properly"
2: string_with_newline_char="new
3: line"
4: multiline_string='new
5: line'
=> 6: pry
7: assert equal "$multiline_string" "$string_with_newline_char"
8: end
9:
10: it "compares strings containing single quotes"
11: assert equal "a' b" "a' b"
[2] shpec-pry> echo "$multiline_string"
new
line
[2] shpec-pry> assert equal "1" "2"
handles newlines properly
(Expected [1] to equal [2])
[2] shpec-pry> assert equal "$multiline_string" "$string_with_newline_char"
handles newlines properly
```
|
@locochris, I don't get what |
|
This seems really cool. Is there anything shpec-specific about it, though? This seems like a separate (albeit really useful) utility that we could recommend along with shpec (similar to |
|
My bad. after a second reread, now i see perfectly the goal. (I thought that w&as a reference to ruby repl, but I should look for a translation: http://dictionnaire.reverso.net/anglais-francais/pry |
|
@rylnd - |
|
@locochris |
|
If we could extract this to a @locochris, is that at all possible? |
|
On 05/07/15 20:35, Ryland Herrick wrote:
As |pry| has to be a bash function, it would be easy to deliver it as an extension to anyone using shpec with bash, Inconveniently, bash does not have a native function autoload feature, like ksh's FPATH, so shpec would need a way of Henk |
|
@locochris I'd like to make this a plugin (perhaps the first!); see #108 for details. I'm going to close this because it won't be merged to master. I've added a label here so that once #108 is ready we can take another pass at converting these to plugins. |
Example usage: