|
152 | 152 | l.log.should include(["invokeMember", "foo"])
|
153 | 153 | end
|
154 | 154 |
|
155 |
| - it description['.method_name', :readMember, ['method_name'], 'if member is readable'] do |
| 155 | + it description['.method_name', :readMember, ['method_name'], 'if member is readable but not invocable'] do |
156 | 156 | pfo, _, l = proxy[TruffleInteropSpecs::PolyglotMember.new]
|
157 | 157 | pfo.foo = :bar
|
158 | 158 | pfo.foo
|
159 | 159 | l.log.should include(["isMemberInvocable", "foo"])
|
160 | 160 | l.log.should include(["readMember", "foo"])
|
161 | 161 | end
|
162 | 162 |
|
163 |
| - it description['.method_name', :readMember, ['method_name'], 'and raises if member is not invocable or readable'] do |
| 163 | + it description['.method_name', :readMember, ['method_name'], 'and raises if member is neither invocable nor readable'] do |
164 | 164 | pfo, _, l = proxy[Object.new]
|
165 | 165 | -> { pfo.foo }.should raise_error(NameError)
|
166 | 166 | l.log.should include(["isMemberInvocable", "foo"])
|
167 | 167 | l.log.should include(["readMember", "foo"])
|
168 | 168 | end
|
169 | 169 |
|
170 |
| - it description['.method_name(*arguments)', :invokeMember, ['method_name', '*arguments'], 'if member is readable and invokable'] do |
| 170 | + it description['.method_name(*arguments)', :invokeMember, ['method_name', '*arguments']] do |
171 | 171 | pfo, _, l = proxy[Object.new]
|
172 | 172 | -> { pfo.bar(1, 2, 3) }.should raise_error(NoMethodError)
|
173 | 173 | l.log.should include(["invokeMember", "bar", 1, 2, 3])
|
|
0 commit comments