diff options
| author | Robert | 2017-07-17 15:34:33 +0200 |
|---|---|---|
| committer | Robert | 2017-07-19 08:40:03 +0200 |
| commit | 0c69d141911a1f8e55c50d521691506ba7f32ac0 (patch) | |
| tree | ff6f6586c6a24d0e4fc56683da3ab139178fdb0e /spec/support/json_helper.rb | |
| parent | eac2dc45fdf6c7dbaa413396ea513b1642b32c1c (diff) | |
| download | chouette-core-0c69d141911a1f8e55c50d521691506ba7f32ac0.tar.bz2 | |
Refs: #3506@16h Request Spec for NetexImport API and implementation
- Carrier Wave Upload with `fixture_file_upload`
- Request specs to .json
- Implementation
- API token setup
- Refuted experiments with controller specs
Diffstat (limited to 'spec/support/json_helper.rb')
| -rw-r--r-- | spec/support/json_helper.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/support/json_helper.rb b/spec/support/json_helper.rb new file mode 100644 index 000000000..a383981a0 --- /dev/null +++ b/spec/support/json_helper.rb @@ -0,0 +1,11 @@ +module Support + module JsonHelper + def json_response_body + JSON.parse(response.body) + end + end +end + +RSpec.configure do | config | + config.include Support::JsonHelper, type: :request +end |
