Skip to content

Commit 122fb39

Browse files
author
Tom Johnson
committed
Generalize protected method check for Queryable
1 parent b38b035 commit 122fb39

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/rdf/spec/queryable.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,7 @@
314314
before { skip unless subject.respond_to?(:query_execute, true ) }
315315

316316
it "defines a protected #query_execute method" do
317-
expect(subject.class.protected_method_defined?(:query_execute))
318-
.to be_truthy
317+
expect(subject.protected_methods).to include :query_execute
319318
end
320319

321320
include_examples 'query execution', :query_execute
@@ -327,7 +326,7 @@
327326
before { skip unless subject.respond_to?(:query_pattern, true ) }
328327

329328
it "defines a protected #query_pattern method" do
330-
expect(subject.class.protected_method_defined?(:query_pattern)).to be_truthy
329+
expect(subject.protected_methods).to include :query_pattern
331330
end
332331

333332
include_examples 'query pattern', :query_pattern

0 commit comments

Comments
 (0)