File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -448,7 +448,7 @@ def props; @properties ||= {}; end
448448 undef_method ( *instance_methods .
449449 map ( &:to_s ) .
450450 select { |m | m =~ /^\w +$/ } .
451- reject { |m | %w( object_id dup instance_eval inspect to_s class ) . include? ( m ) || m [ 0 , 2 ] == '__' } .
451+ reject { |m | %w( object_id dup instance_eval inspect to_s class send public_send ) . include? ( m ) || m [ 0 , 2 ] == '__' } .
452452 map ( &:to_sym ) )
453453
454454 ##
Original file line number Diff line number Diff line change 2727 expect ( subject [ "foo" ] ) . to be_a ( RDF ::Vocabulary ::Term )
2828 end
2929
30+ it "allows #send" do
31+ expect { subject . send ( :foo ) } . not_to raise_error
32+ expect ( subject . send ( :foo ) ) . to be_a ( RDF ::Vocabulary ::Term )
33+ end
34+
35+ it "allows #public_send" do
36+ expect { subject . public_send ( :foo ) } . not_to raise_error
37+ expect ( subject . public_send ( :foo ) ) . to be_a ( RDF ::Vocabulary ::Term )
38+ end
39+
3040 it "does not add to @@uris" do
3141 RDF ::Vocabulary . new ( "http://example/" )
3242 expect ( RDF ::Vocabulary . class_variable_get ( :"@@uris" ) ) . to be_a ( Hash )
You can’t perform that action at this time.
0 commit comments