rspec-api-blueprint-formatter 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/api_blueprint.rb +2 -2
- 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: 3a24e0f18800d662999446c42eab7e44c3bd3304
|
4
|
+
data.tar.gz: 505c120fb733f197f7a4cb667e53d06de190a684
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 103c92125b9d121616975e61cab4d0fa7e1ba85ae9586eda30b164baf6b3a028dd7db841616a93dd31808d118fe83c719cb7af20bfb97448b92d5e4b34e8df89
|
7
|
+
data.tar.gz: 29b56a1a462e20aee707aa99e38bf1d09414df6458ffca800173028b3ff1441f81812f4554cbadec9acd6e64146209caa6c57cada8fb47740b8961746b8341c9
|
data/lib/api_blueprint.rb
CHANGED
@@ -36,7 +36,7 @@ class ApiBlueprint < RSpec::Core::Formatters::BaseTextFormatter
|
|
36
36
|
examples: {
|
37
37
|
description => {
|
38
38
|
request: {
|
39
|
-
parameters: request.parameters.except(*request.path_parameters.keys.map(&:to_s))
|
39
|
+
parameters: JSON.pretty_generate(request.parameters.except(*request.path_parameters.keys.map(&:to_s))),
|
40
40
|
format: request.format
|
41
41
|
},
|
42
42
|
source: passed.example.instance_variable_get(:@example_block).source,
|
@@ -95,7 +95,7 @@ class ApiBlueprint < RSpec::Core::Formatters::BaseTextFormatter
|
|
95
95
|
def print_example(example_description, example_metadata)
|
96
96
|
output.puts "+ Request #{example_description}\n" \
|
97
97
|
"\n" \
|
98
|
-
"
|
98
|
+
"#{indent_lines(8, example_metadata[:request][:parameters])}\n" \
|
99
99
|
" \n" \
|
100
100
|
" Location: #{example_metadata[:location]}\n" \
|
101
101
|
" Source code:\n" \
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-api-blueprint-formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nam Chu Hoai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|