From 6ac37e8a29d380ca177400b4601f09ac76b00f9d Mon Sep 17 00:00:00 2001 From: Tom Johnson Date: Mon, 28 Dec 2015 18:14:10 -0800 Subject: [PATCH] Fix a typo (`Enummerable`) in `RDF::Mutable` This was introduced in 22d6fea51, leading up to the 1.99 release. This conditional is apparently untested; apparently we never try to `#update` on a single statement throughout the suite. I'm working on a test to catch this. I believe we should merge this immediately, since it is a simple typo fix. Any issues revealed in adding `#update` testing can be dealt with as an issue unrelated to the typo. --- lib/rdf/mixin/mutable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rdf/mixin/mutable.rb b/lib/rdf/mixin/mutable.rb index ec6b2ffb..204f25ef 100644 --- a/lib/rdf/mixin/mutable.rb +++ b/lib/rdf/mixin/mutable.rb @@ -122,7 +122,7 @@ def insert(*statements) # @return [self] def update(*statements) raise TypeError.new("#{self} is immutable") if immutable? - statements = statements[0] if statements.length == 1 && statements[0].is_a?(Enummerable) + statements = statements[0] if statements.length == 1 && statements[0].is_a?(Enumerable) statements.each do |statement| if (statement = Statement.from(statement))