8000 remove rubygems related skipped tests · github/ruby@92ceaf7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 92ceaf7

Browse files
author
Charlie Somerville
committed
remove rubygems related skipped tests
1 parent 99bdae6 commit 92ceaf7

File tree

2 files changed

+0
-250
lines changed

2 files changed

+0
-250
lines changed

test/rdoc/test_rdoc_rubygems_hook.rb

Lines changed: 0 additions & 201 deletions
This file was deleted.

test/rubygems/test_gem_specification.rb

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -130,44 +130,6 @@ def test_self_from_yaml_syck_date_bug
130130
assert_kind_of Time, new_spec.date
131131
end
132132

133-
def test_self_from_yaml_syck_default_key_bug
134-
skip 'syck default_key bug is only for ruby 1.8' unless RUBY_VERSION < '1.9'
135-
# This is equivalent to (and totally valid) psych 1.0 output and
136-
# causes parse errors on syck.
137-
yaml = <<-YAML
138-
--- !ruby/object:Gem::Specification
139-
name: posix-spawn
140-
version: !ruby/object:Gem::Version
141-
version: 0.3.6
142-
prerelease:
143-
dependencies:
144-
- !ruby/object:Gem::Dependency
145-
name: rake-compiler
146-
requirement: &70243867725240 !ruby/object:Gem::Requirement
147-
none: false
148-
requirements:
149-
- - =
150-
- !ruby/object:Gem::Version
151-
version: 0.7.6
152-
type: :development
153-
prerelease: false
154-
version_requirements: *70243867725240
155-
platform: ruby
156-
files: []
157-
test_files: []
158-
bindir:
159-
YAML
160-
161-
new_spec = with_syck do
162-
Gem::Specification.from_yaml yaml
163-
end
164-
165-
op = new_spec.dependencies.first.requirement.requirements.first.first
166-
refute_kind_of YAML::Syck::DefaultKey, op
167-
168-
refute_match %r%DefaultKey%, new_spec.to_ruby
169-
end
170-
171133
def test_self_from_yaml_cleans_up_defaultkey
172134
yaml = <<-YAML
173135
--- !ruby/object:Gem::Specification
@@ -419,17 +381,6 @@ def test_handles_private_null_type
419381
assert_equal nil, data.rubyforge_project
420382
end
421383

422-
def test_emits_zulu_timestamps_properly
423-
skip "bug only on 1.9.2" unless RUBY_VERSION =~ /1\.9\.2/
424-
425-
t = Time.utc(2012, 3, 12)
426-
@a2.date = t
427-
428-
yaml = with_psych { @a2.to_yaml }
429-
430-
assert_match %r!date: 2012-03-12 00:00:00\.000000000 Z!, yaml
431-
end
432-
433384
def test_initialize
434385
spec = Gem::Specification.new do |s|
435386
s.name = "blah"

0 commit comments

Comments
 (0)
0