graphiti_spec_helpers 1.0.beta.3 → 1.0.beta.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphiti_spec_helpers/rspec.rb +6 -3
- data/lib/graphiti_spec_helpers/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 133ae38aebb30d45d6f16c5c449a30e1e3eba0ea
|
4
|
+
data.tar.gz: bf0c8c6157c3e4a89c075fa96f3703e831555fa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eb4d0b4e3df24b8919b2d95ccc040a71e3c1f3e070b3a451e003e38d8b09eaec9e7678ae1fa430909355240c03b4be39edb7932715d7363c2ad846e1754abd8
|
7
|
+
data.tar.gz: 97c90e3e948d8d04072f83c082d95d7f1b392c1d17cde862386b0fd9b7b0c465fa4aa2d8ebb2aecfaa55c5e0ddb61e5ce3141c68ceea57e76b366fa54bfa1f50
|
@@ -18,9 +18,12 @@ require 'graphiti_spec_helpers'
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def graphiti_context
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
@graphiti_context ||= begin
|
22
|
+
ctx = OpenStruct.new
|
23
|
+
ctx.current_user = current_user if respond_to?(:current_user)
|
24
|
+
ctx.params = params
|
25
|
+
ctx
|
26
|
+
end
|
24
27
|
end
|
25
28
|
|
26
29
|
# If you need to set context:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphiti_spec_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.beta.
|
4
|
+
version: 1.0.beta.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphiti
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: 1.3.1
|
154
154
|
requirements: []
|
155
155
|
rubyforge_project:
|
156
|
-
rubygems_version: 2.6.
|
156
|
+
rubygems_version: 2.6.12
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: Spec helpers for Graphiti and JSONAPI
|