Skip to content

Commit c87f5db

Browse files
committed
about_modules
1 parent 8f41889 commit c87f5db

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.path_progress

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
0,1,2,5,6
22
,8,9,10,13,15,16
33
,18,18,19,20,20,21,22,23,24,32,33,35,35,37,39,40,41,42,42,42,43,44,46,49,50,51,52,55,56,59,60,60,61,63,64,65,67
4-
,70,71,73,74,75,75,76,77,78,79,81,81,82,84,84,85,85,87,88,90,91,93,94,96,98,99,99,100,101,103,104,106,107,107,108,109,111,111,114,115,116,116,116,117,119,121,122,123,124,125,127,128,130,130,131,132,134,135,139,141,143,145,146,149,150,151,153,151,153,153,153,154,154,154,155,158,159,159,160,163,166,166,167,167,168,172,173,176,177,178,178,181,182,187,187,187,190,191,191,192,192,195,199,200,203,202,203,204,205,205,205,205,206,207,209,210,210,210,214,210,217,220,220,221,221
4+
,70,71,73,74,75,75,76,77,78,79,81,81,82,84,84,85,85,87,88,90,91,93,94,96,98,99,99,100,101,103,104,106,107,107,108,109,111,111,114,115,116,116,116,117,119,121,122,123,124,125,127,128,130,130,131,132,134,135,139,141,143,145,146,149,150,151,153,151,153,153,153,154,154,154,155,158,159,159,160,163,166,166,167,167,168,172,173,176,177,178,178,181,182,187,187,187,190,191,191,192,192,195,199,200,203,202,203,204,205,205,205,205,206,207,209,210,210,210,214,210,217,220,220,221,221,224,226

about_modules.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def here
1212
end
1313

1414
def test_cant_instantiate_modules
15-
assert_raise(___) do
15+
assert_raise(NoMethodError) do
1616
Nameable.new
1717
end
1818
end
@@ -39,7 +39,7 @@ def here
3939

4040
def test_normal_methods_are_available_in_the_object
4141
fido = Dog.new
42-
assert_equal __, fido.bark
42+
assert_equal 'WOOF', fido.bark
4343
end
4444

4545
def test_module_methods_are_also_available_in_the_object
@@ -51,13 +51,13 @@ def test_module_methods_are_also_available_in_the_object
5151

5252
def test_module_methods_can_affect_instance_variables_in_the_object
5353
fido = Dog.new
54-
assert_equal __, fido.name
54+
assert_equal 'Fido', fido.name
5555
fido.set_name("Rover")
56-
assert_equal __, fido.name
56+
assert_equal 'Rover', fido.name
5757
end
5858

5959
def test_classes_can_override_module_methods
6060
fido = Dog.new
61-
assert_equal __, fido.here
61+
assert_equal :in_object, fido.here
6262
end
6363
end

0 commit comments

Comments
 (0)