rspec-power_assert 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/rspec/power_assert/version.rb +1 -1
- data/rspec-power_assert.gemspec +1 -1
- data/spec/rspec/power_assert_spec.rb +31 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8283c8699d52f22d6ec4d8ee4189ef9b7645d25
|
4
|
+
data.tar.gz: 7e57857c854a0ae0ec7175a40bc443c87b9e5877
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9ce5c8cd7a38b8fca225bb809baebb9e521fa6878337b44a28b39accba69abe11a503821f021803efddccfe633e702c1ecef8f996c0f49624c59d51aca83c62
|
7
|
+
data.tar.gz: b566e289701333a9cffd1f7b08de4cff63568ba10a5a52f31fbead90e74241490d099770a5f4ff281ed3e46a1a3ad8874cc46bb4bf14f7a2c0935f9c67371205
|
data/README.md
CHANGED
data/rspec-power_assert.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_runtime_dependency "power_assert", "~> 0.
|
21
|
+
spec.add_runtime_dependency "power_assert", "~> 0.3.0"
|
22
22
|
spec.add_runtime_dependency "rspec", ">= 2.14"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.7"
|
@@ -101,4 +101,35 @@ describe Rspec::PowerAssert do
|
|
101
101
|
end
|
102
102
|
end
|
103
103
|
end
|
104
|
+
|
105
|
+
describe Object do
|
106
|
+
before do
|
107
|
+
PowerAssert.configure do |c|
|
108
|
+
c._trace_alias_method = true
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
after do
|
113
|
+
PowerAssert.configure do |c|
|
114
|
+
c._trace_alias_method = false
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
let(:object) {
|
119
|
+
Class.new {
|
120
|
+
def foo
|
121
|
+
:foo
|
122
|
+
end
|
123
|
+
|
124
|
+
alias alias_of_iseq foo
|
125
|
+
alias alias_of_cfunc to_s
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
subject { object.new }
|
130
|
+
|
131
|
+
it do
|
132
|
+
is_asserted_by { subject.alias_of_iseq == :bar }
|
133
|
+
end
|
134
|
+
end
|
104
135
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-power_assert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joker1007
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: power_assert
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.3.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.3.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.4
|
109
|
+
rubygems_version: 2.6.4
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: Power Assert for RSpec.
|