Skip to content

Commit c2f33b3

Browse files
committed
Fix spec warning.
1 parent 2d32934 commit c2f33b3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

json-ld.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Gem::Specification.new do |gem|
3131
gem.add_runtime_dependency 'multi_json', '~> 1.11'
3232
gem.add_development_dependency 'jsonlint', '~> 0.1.0' unless RUBY_ENGINE == "jruby"
3333
gem.add_development_dependency 'oj', '~> 2.12' unless RUBY_ENGINE == "jruby"
34-
gem.add_development_dependency 'yajl-ruby', '~> 1.2.1' unless RUBY_ENGINE == "jruby"
34+
gem.add_development_dependency 'yajl-ruby', '~> 1.2' unless RUBY_ENGINE == "jruby"
3535
gem.add_development_dependency "rack-cache", '~> 1.2'
3636
gem.add_development_dependency "rest-client", '~> 1.8'
3737
gem.add_development_dependency "rest-client-components", '~> 1.4'

spec/context_spec.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def containers
6565
end
6666

6767
it "notes non-existing @context" do
68-
expect {subject.parse(StringIO.new("{}"))}.to raise_error
68+
expect {subject.parse(StringIO.new("{}"))}.to raise_error(JSON::LD::JsonLdError::InvalidRemoteContext)
6969
end
7070

7171
it "parses a referenced context at a relative URI" do
@@ -262,7 +262,7 @@ def containers
262262
"@type as object" => {"foo" => {"@type" => {}}},
263263
"@type as array" => {"foo" => {"@type" => []}},
264264
"@type as @list" => {"foo" => {"@type" => "@list"}},
265-
"@type as @list" => {"foo" => {"@type" => "@set"}},
265+
"@type as @set" => {"foo" => {"@type" => "@set"}},
266266
"@container as object" => {"foo" => {"@container" => {}}},
267267
"@container as array" => {"foo" => {"@container" => []}},
268268
"@container as string" => {"foo" => {"@container" => "true"}},
@@ -881,7 +881,6 @@ def containers
881881
"unmapped" => ["foo", "foo"],
882882
"bnode" => ["_:a", RDF::Node("a")],
883883
"relative" => ["foo/bar", "http://base/foo/bar"],
884-
"odd CURIE" => ["exp:s", "http://example.org/perts"],
885884
"odd CURIE" => ["ex:perts", "http://example.org/perts"]
886885
}.each do |title, (result, input)|
887886
it title do

0 commit comments

Comments
 (0)