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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fb00b915c73e7026a8842c179fab476f44aeb64
4
- data.tar.gz: 6dc75022730b389924604985e5c64b788e8127eb
3
+ metadata.gz: b8283c8699d52f22d6ec4d8ee4189ef9b7645d25
4
+ data.tar.gz: 7e57857c854a0ae0ec7175a40bc443c87b9e5877
5
5
  SHA512:
6
- metadata.gz: 09fe61c3d55ea9c7cb3d3514e63dc292e6386506246b069feb1b8651aaf14122f6eaaafeda8847ebcc1df3a2177c18703f7112e83b9e7f8f2e34b3e3173bbaf2
7
- data.tar.gz: 32e80591b88a0aa9fe3c403d76f0ac9c14273f95ded1150f198b7cf8df4425ace4d3706911db950991867c5a9657da3d4c4ea7246cfe58241fa34783cc4ab7cc
6
+ metadata.gz: c9ce5c8cd7a38b8fca225bb809baebb9e521fa6878337b44a28b39accba69abe11a503821f021803efddccfe633e702c1ecef8f996c0f49624c59d51aca83c62
7
+ data.tar.gz: b566e289701333a9cffd1f7b08de4cff63568ba10a5a52f31fbead90e74241490d099770a5f4ff281ed3e46a1a3ad8874cc46bb4bf14f7a2c0935f9c67371205
data/README.md CHANGED
@@ -25,7 +25,7 @@ Or install it yourself as:
25
25
  First, add require option to `.rspec`
26
26
 
27
27
  ```
28
- -r power_assert
28
+ -r rspec-power_assert
29
29
  ```
30
30
 
31
31
  Use `ExampleGroup.it_is_asserted_by` or `ExampleGroup#is_asserted_by`
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module PowerAssert
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
@@ -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.2.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.3.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: 2015-08-28 00:00:00.000000000 Z
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.2.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.2.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.6
109
+ rubygems_version: 2.6.4
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Power Assert for RSpec.