rspec-http-fixtures 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rspec-http-fixtures/fixture-namespace.rb +2 -2
- data/lib/rspec-http-fixtures/helpers.rb +1 -1
- data/rspec-http-fixtures.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7985af8f1701e5f82d9f5b42e72510a0e27c09693183809e8fd5f239afa5a32
|
4
|
+
data.tar.gz: 69da76fa59dcc78235e05f2b81795e1d7dc0683061c45565e10d45e5a72df62b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a95db89706bc5f3864ea612704af8226b59ccb25c693103c935f5d84605986ef7bffa2f254c6f158128ea8993849119da19677c6d313383309195301bf36b8f
|
7
|
+
data.tar.gz: 968b8d9946c777f631307a674efbd8d61b40d5ebc975c885ec2b63b21eed2b16a0bb3225c98420e4dba2ec2077c21cfbe9c94e7925a4d2b45f0481a187fed7be
|
data/Gemfile.lock
CHANGED
@@ -66,11 +66,11 @@ module RSpecHTTPFixtures
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def build_json_collection_fixture(fixture, params_collection = [])
|
69
|
-
@context.
|
69
|
+
@context.build_json_collection_http_fixture(build_fixture_path(fixture), params_collection)
|
70
70
|
end
|
71
71
|
|
72
72
|
def build_xml_collection_fixture(fixture, params_collection = [])
|
73
|
-
params_collection.map { |p| @context.
|
73
|
+
params_collection.map { |p| @context.read_http_fixture(build_fixture_path(fixture), p) }.join("")
|
74
74
|
end
|
75
75
|
|
76
76
|
# rubocop:disable Style/MethodMissingSuper
|
@@ -46,7 +46,7 @@ module RSpecHTTPFixtures
|
|
46
46
|
erb.result(namespace.instance_eval { binding })
|
47
47
|
end
|
48
48
|
|
49
|
-
def
|
49
|
+
def build_json_collection_http_fixture(path, collection_params)
|
50
50
|
return unless collection_params
|
51
51
|
|
52
52
|
collection_params.map { |p| JSON.parse(read_http_fixture(path, p)) }.to_json
|
data/rspec-http-fixtures.gemspec
CHANGED