mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-15 07:23:19 -04:00
Merge pull request #95 from ArturMoczulski/patch-1
Fixes a silly typo in the method name
This commit is contained in:
@@ -13,13 +13,13 @@ class AboutKeywordArguments < Neo::Koan
|
|||||||
assert_equal __([1, 2]), method_with_keyword_arguments(two: 2)
|
assert_equal __([1, 2]), method_with_keyword_arguments(two: 2)
|
||||||
end
|
end
|
||||||
|
|
||||||
def method_with_keywork_arguments_with_mandatory_argument(one, two: 2, three: 3)
|
def method_with_keyword_arguments_with_mandatory_argument(one, two: 2, three: 3)
|
||||||
[one, two, three]
|
[one, two, three]
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_keyword_arguments_with_wrong_number_of_arguments
|
def test_keyword_arguments_with_wrong_number_of_arguments
|
||||||
exception = assert_raise (___(ArgumentError)) do
|
exception = assert_raise (___(ArgumentError)) do
|
||||||
method_with_keywork_arguments_with_mandatory_argument
|
method_with_keyword_arguments_with_mandatory_argument
|
||||||
end
|
end
|
||||||
assert_match(/#{__("wrong number of arguments")}/, exception.message)
|
assert_match(/#{__("wrong number of arguments")}/, exception.message)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user