Skip to content

Commit eb2ffc7

Browse files
author
Thomas Johnson
committed
Merge pull request #50 from ruby-rdf/feature/subject-to-named
Fix errant `subject` calls in Repository specs
2 parents 16cfe17 + dd4d28d commit eb2ffc7

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

Gemfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ source "http://rubygems.org"
22

33
gemspec
44

5-
gem "rdf", git: "git://github.com/ruby-rdf/rdf.git", branch: "develop"
5+
gem "rdf", git: "git://github.com/ruby-rdf/rdf.git", branch: "develop"
6+
gem "rdf-isomorphic", git: "git://github.com/ruby-rdf/rdf-isomorphic.git", branch: "develop"
67

78
group :development do
89
gem "wirble"
@@ -15,4 +16,4 @@ end
1516
group :development, :test do
1617
gem 'simplecov', require: false, platform: :mri_21 # Travis doesn't understand 22 yet.
1718
gem 'coveralls', require: false, platform: :mri_21 # Travis doesn't understand 22 yet.
18-
end
19+
end

lib/rdf/spec/dataset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
describe '#isolation_level' do
4242
it 'is an allowable isolation level' do
4343
expect(described_class::ISOLATION_LEVELS)
44-
.to include(subject.isolation_level)
44+
.to include(dataset.isolation_level)
4545
end
4646
end
4747
end

lib/rdf/spec/repository.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131

3232
describe '#delete_insert' do
3333
it 'updates transactionally' do
34-
expect(subject).to receive(:commit_transaction).and_call_original
34+
expect(mutable).to receive(:commit_transaction).and_call_original
3535
statement = RDF::Statement(:s, RDF::URI.new("urn:predicate:1"), :o)
3636

37-
subject.delete_insert([statement], [statement])
37+
mutable.delete_insert([statement], [statement])
3838
end
3939
end
4040
end

0 commit comments

Comments
 (0)