rspec-rcv 0.2.1 → 0.2.2
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-rcv/helpers/deep_except.rb +6 -0
- data/lib/rspec-rcv/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62b3a8d716c6ffce6fe323ef1892cfd80c6f922f
|
4
|
+
data.tar.gz: 6a55d9f3d6dcfb74a4a723001efa2b13cbca04ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91074435ecde69054339d80bfae8cae50cd1d8bd7ad718a32dbd6bafe1f2776751759d3412f57768b616ea076e40ae5993dccedfacf178b51fa94fe913eea086
|
7
|
+
data.tar.gz: 978ebe2eb26c108a1b387e4668c268608d4efc852ccb57f33ab9b8faa20e5f5c3b6a4e289a0f0428eb6c58791f5cf94483cfb179447f19b0e5fe2d0a6f030366
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ The gem is require'd in the rspec loading script, and will take effect from ther
|
|
10
10
|
|
11
11
|
```ruby
|
12
12
|
describe "GET index" do
|
13
|
-
it "is successful", fixture: "widgets/index.json" do
|
13
|
+
it "is successful", rcv: {fixture: "spec/fixtures/widgets/index.json"} do
|
14
14
|
get :index
|
15
15
|
expect(response).to be_success
|
16
16
|
end
|
@@ -13,6 +13,12 @@ module RSpecRcv
|
|
13
13
|
private
|
14
14
|
|
15
15
|
def inject(hash, except)
|
16
|
+
if hash.is_a?(Array)
|
17
|
+
hash.each_with_index do |item, index|
|
18
|
+
hash[index] = inject(item, except)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
16
22
|
return hash unless hash.is_a?(Hash)
|
17
23
|
|
18
24
|
hash.inject({}) do |h, (k, v)|
|
data/lib/rspec-rcv/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-rcv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Bussey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|