mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-15 07:23:19 -04:00
Initial minor changes (grammatical in methods; require -> require_relative in tri...).
This commit is contained in:
@@ -37,7 +37,7 @@ class AboutMethods < Neo::Koan
|
|||||||
#
|
#
|
||||||
end
|
end
|
||||||
|
|
||||||
# NOTE: wrong number of argument is not a SYNTAX error, but a
|
# NOTE: wrong number of arguments is not a SYNTAX error, but a
|
||||||
# runtime error.
|
# runtime error.
|
||||||
def test_calling_global_methods_with_wrong_number_of_arguments
|
def test_calling_global_methods_with_wrong_number_of_arguments
|
||||||
exception = assert_raise(___(ArgumentError)) do
|
exception = assert_raise(___(ArgumentError)) do
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
require File.expand_path(File.dirname(__FILE__) + '/neo')
|
require File.expand_path(File.dirname(__FILE__) + '/neo')
|
||||||
|
|
||||||
# You need to write the triangle method in the file 'triangle.rb'
|
# You need to write the triangle method in the file 'triangle.rb'
|
||||||
require 'triangle.rb'
|
require_relative 'triangle.rb'
|
||||||
|
|
||||||
class AboutTriangleProject < Neo::Koan
|
class AboutTriangleProject < Neo::Koan
|
||||||
def test_equilateral_triangles_have_equal_sides
|
def test_equilateral_triangles_have_equal_sides
|
||||||
|
|||||||
Reference in New Issue
Block a user