power_assert 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/lib/power_assert/enable_tracepoint_events.rb +2 -0
- data/lib/power_assert/version.rb +1 -1
- data/test/test_power_assert.rb +11 -20
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40425b849bc13c3697522de357afa6176914bddc
|
4
|
+
data.tar.gz: fae40e27a12725faf59a05af5e3e9105a3d2a429
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 338d87fbfb75835d6473fc244244929bf624fa55cc27df94e6e46fc5fee58843663d3b4ef9617836b0636d6c7bdc765d6270a2d4b30efb5350029154d148b877
|
7
|
+
data.tar.gz: 34c1313f33f65a78cd08177c236b16e33c5780aa1e5d9ede4f4cfff49b27ddfc3cdb0acda1575b16969f9e421908dabcc6f0a12491ff0879b9fb6a98d679aded
|
data/.travis.yml
CHANGED
@@ -18,6 +18,7 @@ if defined? RubyVM
|
|
18
18
|
true
|
19
19
|
end
|
20
20
|
end
|
21
|
+
private_constant :Bug11182
|
21
22
|
|
22
23
|
refine Bug11182 do
|
23
24
|
def fixed?
|
@@ -28,6 +29,7 @@ if defined? RubyVM
|
|
28
29
|
alias _fixed? fixed?
|
29
30
|
protected :_fixed?
|
30
31
|
end
|
32
|
+
private_constant :Bug11182Sub
|
31
33
|
|
32
34
|
if (Bug11182.new.fixed? rescue false)
|
33
35
|
basic_classes.each do |klass|
|
data/lib/power_assert/version.rb
CHANGED
data/test/test_power_assert.rb
CHANGED
@@ -345,27 +345,18 @@ END
|
|
345
345
|
assertion_message { BasicObjectSubclass.new.foo }
|
346
346
|
|
347
347
|
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
begin
|
352
|
-
$VERBOSE = nil
|
353
|
-
Encoding.default_external = 'cp932'
|
354
|
-
Encoding.default_internal = 'utf-8'
|
355
|
-
ary = ["\u3042"]
|
356
|
-
assert_match Regexp.new(<<END.chomp.gsub('|', "\\|")), assertion_message {
|
357
|
-
ary.length
|
358
|
-
| |
|
359
|
-
| 1
|
360
|
-
InspectionFailure: Encoding::CompatibilityError: .*
|
361
|
-
END
|
362
|
-
ary.length
|
363
|
-
}
|
364
|
-
ensure
|
365
|
-
Encoding.default_internal = default_internal
|
366
|
-
Encoding.default_external = default_external
|
367
|
-
$VERBOSE = verbose
|
348
|
+
o = Object.new
|
349
|
+
def o.inspect
|
350
|
+
raise
|
368
351
|
end
|
352
|
+
assert_equal <<END.chomp.b, assertion_message {
|
353
|
+
o.class
|
354
|
+
| |
|
355
|
+
| Object
|
356
|
+
InspectionFailure: RuntimeError:
|
357
|
+
END
|
358
|
+
o.class
|
359
|
+
}
|
369
360
|
end
|
370
361
|
|
371
362
|
def test_assertion_message_with_incompatible_encodings
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: power_assert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuki Tsujimoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
version: '0'
|
100
100
|
requirements: []
|
101
101
|
rubyforge_project:
|
102
|
-
rubygems_version: 2.
|
102
|
+
rubygems_version: 2.5.1
|
103
103
|
signing_key:
|
104
104
|
specification_version: 4
|
105
105
|
summary: Power Assert for Ruby
|