git://git.eng.unimelb.edu.au
/
ruby_koans.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
007eeff
)
Added __ to assert with no __ blanks.
author
Jim Weirich
<jim.weirich@gmail.com>
Sun, 4 Dec 2011 07:39:29 +0000
(
02:39
-0500)
committer
Jim Weirich
<jim.weirich@gmail.com>
Sun, 4 Dec 2011 07:39:29 +0000
(
02:39
-0500)
src/about_hashes.rb
patch
|
blob
|
history
diff --git
a/src/about_hashes.rb
b/src/about_hashes.rb
index
27a6fd1
..
2382d68
100644
(file)
--- a/
src/about_hashes.rb
+++ b/
src/about_hashes.rb
@@
-22,7
+22,7
@@
class AboutHashes < EdgeCase::Koan
def test_accessing_hashes_with_fetch
hash = { :one => "uno" }
- assert_equal
"uno"
, hash.fetch(:one)
+ assert_equal
__("uno")
, hash.fetch(:one)
assert_raise(___(IndexError, KeyError)) do
hash.fetch(:doesnt_exist)
end