Skip to content

Commit

Permalink
3.0 development branch; removes deprecation expectations.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Nov 16, 2017
1 parent 7e186ad commit 6c5b8c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source "http://rubygems.org"

gemspec

gem 'rdf', github: "ruby-rdf/rdf", branch: "develop"
gem 'rdf', github: "ruby-rdf/rdf", branch: "feature/3.0-dev"
gem 'rdf-isomorphic', github: "ruby-rdf/rdf-isomorphic", branch: "develop"

group :debug do
Expand Down
12 changes: 0 additions & 12 deletions lib/rdf/spec/enumerable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -514,23 +514,11 @@
context "when converting" do
it {is_expected.to respond_to(:to_h)}
it {is_expected.not_to respond_to(:to_hash)}
its(:to_hash) {
expect {
is_expected.to be_instance_of(Hash)
}.to write("DEPRECATION").to(:error)
}
describe "#to_h" do
it "should have as many keys as subjects" do
expect(subject.to_h.keys.size).to eq enumerable.subjects.to_a.size
end
end
describe "#to_h" do
it "should have as many keys as subjects (with deprecation)" do
expect {
expect(subject.to_hash.keys.size).to eq enumerable.subjects.to_a.size
}.to write("DEPRECATION").to(:error)
end
end
end

context "when dumping" do
Expand Down

0 comments on commit 6c5b8c8

Please sign in to comment.