Skip to content

Commit 10f5051

Browse files
committed
Update some pendings to skips for RSpec 3.0.
Remove some unnecessary pendings for JRuby.
1 parent 61929a4 commit 10f5051

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

lib/rdf/spec/enumerable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module RDF_Enumerable
5050
expect {subject.valid?}.to raise_error(NotImplementedError)
5151
end
5252
else
53-
pending("can't add statement to immutable enumerable")
53+
skip("can't add statement to immutable enumerable")
5454
end
5555
end
5656
end

lib/rdf/spec/queryable.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ module RDF_Queryable
328328
expect(subject.first).to eq subject.each.first # uses an Enumerator
329329
end
330330

331-
it "returns the correct value when the pattern matches", :pending => (defined?(RUBY_PLATFORM) && RUBY_PLATFORM == 'java') do
331+
it "returns the correct value when the pattern matches" do
332332
matching_patterns = [[nil, nil, nil], subject.each.first]
333333
matching_patterns.each do |matching_pattern|
334334
expect(subject.first(matching_pattern)).to eq subject.query(matching_pattern).each.first
@@ -355,12 +355,12 @@ module RDF_Queryable
355355
expect(subject).to respond_to(:first_subject)
356356
end
357357

358-
it "returns enumerator without a pattern", :pending => (defined?(RUBY_PLATFORM) && RUBY_PLATFORM == 'java') do
358+
it "returns enumerator without a pattern" do
359359
expect { subject.first_subject }.not_to raise_error
360360
expect(subject.first_subject).to eq subject.first.subject
361361
end
362362

363-
it "returns the correct value when the pattern matches", :pending => (defined?(RUBY_PLATFORM) && RUBY_PLATFORM == 'java') do
363+
it "returns the correct value when the pattern matches" do
364364
matching_patterns = [[nil, nil, nil], [subject.first.subject, nil, nil]]
365365
matching_patterns.each do |matching_pattern|
366366
expect(subject.first_subject(matching_pattern)).to eq subject.query(matching_pattern).first.subject
@@ -386,12 +386,12 @@ module RDF_Queryable
386386

387387
it {should respond_to(:first_predicate)}
388388

389-
it "returns enumerator without a pattern", :pending => (defined?(RUBY_PLATFORM) && RUBY_PLATFORM == 'java') do
389+
it "returns enumerator without a pattern" do
390390
expect { subject.first_predicate }.not_to raise_error
391391
expect(subject.first_predicate).to eq subject.first.predicate
392392
end
393393

394-
it "returns the correct value when the pattern matches", :pending => (defined?(RUBY_PLATFORM) && RUBY_PLATFORM == 'java') do
394+
it "returns the correct value when the pattern matches" do
395395
matching_patterns = [[nil, nil, nil], [nil, subject.first.predicate, nil]]
396396
matching_patterns.each do |matching_pattern|
397397
expect(subject.first_predicate(matching_pattern)).to eq subject.query(matching_pattern).first.predicate
@@ -416,12 +416,12 @@ module RDF_Queryable
416416
let(:failing_pattern) {[nil, nil, RDF::Node.new]}
417417
it {should respond_to(:first_object)}
418418

419-
it "returns enurator without a pattern", :pending => (defined?(RUBY_PLATFORM) && RUBY_PLATFORM == 'java') do
419+
it "returns enurator without a pattern" do
420420
expect { subject.first_object }.not_to raise_error
421421
expect(subject.first_object).to eq subject.first.object
422422
end
423423

424-
it "returns the correct value when the pattern matches", :pending => (defined?(RUBY_PLATFORM) && RUBY_PLATFORM == 'java') do
424+
it "returns the correct value when the pattern matches" do
425425
matching_patterns = [[nil, nil, nil], [nil, nil, subject.first.object]]
426426
matching_patterns.each do |matching_pattern|
427427
expect(subject.first_object(matching_pattern)).to eq subject.query(matching_pattern).first.object

0 commit comments

Comments
 (0)