summaryrefslogtreecommitdiff
path: root/spec/support/shared_contexts/json_response_shared_context.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/shared_contexts/json_response_shared_context.rb')
-rw-r--r--spec/support/shared_contexts/json_response_shared_context.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/support/shared_contexts/json_response_shared_context.rb b/spec/support/shared_contexts/json_response_shared_context.rb
new file mode 100644
index 00000000000..df5fc288089
--- /dev/null
+++ b/spec/support/shared_contexts/json_response_shared_context.rb
@@ -0,0 +1,3 @@
+shared_context 'JSON response' do
+ let(:json_response) { JSON.parse(response.body) }
+end