Skip to content

Commit

Permalink
Updates for keyword arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Dec 27, 2015
1 parent 33416c1 commit 7d8b239
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -20,7 +20,7 @@ end
group :debug do
gem 'shotgun'
gem "wirble"
gem "byebug", platforms: [:mri_20, :mri_21]
gem "byebug", platforms: :mri
end

platforms :rbx do
Expand Down
2 changes: 1 addition & 1 deletion Gemfile-pure
Expand Up @@ -19,7 +19,7 @@ end
group :debug do
gem 'shotgun'
gem "wirble"
gem "byebug", platforms: [:mri_20, :mri_21]
gem "byebug", platforms: :mri
end

platforms :rbx do
Expand Down
7 changes: 1 addition & 6 deletions lib/sparql/client/query.rb
Expand Up @@ -354,12 +354,7 @@ def expects_statements?
##
# @private
def build_patterns(patterns)
patterns.map do |pattern|
case pattern
when RDF::Query::Pattern then pattern
else RDF::Query::Pattern.new(*pattern.to_a)
end
end
patterns.map {|pattern| RDF::Query::Pattern.from(pattern)}
end

##
Expand Down
4 changes: 3 additions & 1 deletion spec/client_spec.rb
Expand Up @@ -265,7 +265,9 @@ def response(header)

describe "#query" do
it "raises error on malformed query" do
expect {subject.query("Invalid SPARQL")}.to raise_error(SPARQL::MalformedQuery)
expect do
expect {subject.query("Invalid SPARQL")}.to raise_error(SPARQL::MalformedQuery)
end.to write("ERROR").to(:error)
end
end
end
Expand Down

0 comments on commit 7d8b239

Please sign in to comment.