Skip to content

Commit 26e36c5

Browse files
committed
Add logger to test entry composed of options[:debug] entries, as this is expected in equivalent_graph.
1 parent 177852f commit 26e36c5

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ build/
3535
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
3636
.rvmrc
3737
/Gemfile.lock
38+
/.byebug_history

spec/suite_helper.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,15 @@ def negative_test?
177177
!positive_test?
178178
end
179179

180+
# Create a logger initialized with the content of `debug`
181+
def logger
182+
@logger ||= begin
183+
l = RDF::Spec.logger
184+
debug.each {|d| l.debug(d)}
185+
l
186+
end
187+
end
188+
180189
def inspect
181190
super.sub('>', "\n" +
182191
" syntax?: #{syntax?.inspect}\n" +

0 commit comments

Comments
 (0)