sleepers 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/sleepers/rspec/config.rb +27 -0
- data/lib/sleepers/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a26ca1030be2253d3dacc0a4f9b5513a12094ce3
|
4
|
+
data.tar.gz: ec35ca4519eb0a2414d99880b461e49bbce2a648
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d0b1de936d8624a7376ec88015731073f1857482857ece0672bf8caed50046e1a7daa439fc168a0d69791031531f9207e7ea56b45e71837b5acf968e130c545
|
7
|
+
data.tar.gz: 6f3d7796ae96984ea79133279dd268afea4d7d2d2d1a4fe1a4aeaba1993ae354337237a160708f33520a52eedd2878ce27206d77ae8451891a57f71e81172e44
|
data/.gitignore
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
RSpec.configure do |config|
|
2
|
+
config.around(:each, :debug, type: :model) do |example|
|
3
|
+
@debug = true
|
4
|
+
example.run
|
5
|
+
|
6
|
+
if defined?(serializer)
|
7
|
+
puts "serializer.as_json =>"
|
8
|
+
ap serializer.as_json
|
9
|
+
end
|
10
|
+
|
11
|
+
puts "#"*50
|
12
|
+
puts "SUBJECT OBJECT"
|
13
|
+
puts "#"*50
|
14
|
+
ap subject
|
15
|
+
|
16
|
+
@debug = false
|
17
|
+
end
|
18
|
+
config.around(:each, :debug, type: :controller) do |example|
|
19
|
+
example.run
|
20
|
+
puts "Response body =>"
|
21
|
+
begin
|
22
|
+
ap json_body
|
23
|
+
rescue JSON::ParserError => e
|
24
|
+
puts response.body
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/sleepers/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sleepers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyrone Wilson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|
@@ -156,6 +156,7 @@ files:
|
|
156
156
|
- bin/setup
|
157
157
|
- lib/sleepers.rb
|
158
158
|
- lib/sleepers/rspec/collection_matchers.rb
|
159
|
+
- lib/sleepers/rspec/config.rb
|
159
160
|
- lib/sleepers/rspec/hash_matchers.rb
|
160
161
|
- lib/sleepers/rspec/matchers.rb
|
161
162
|
- lib/sleepers/version.rb
|