Sha256: 172e5351086d0cec53db300b7561910f9331a56f1424b3ba49badb7da21feca3

Contents?: true

Size: 277 Bytes

Versions: 11

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true

# spec/support/request_spec_helper
module RequestSpecHelper
  # Parse JSON response to ruby hash
  def resp_json
    JSON.parse(response.body, symbolize_names: true)
  end

  def current_user
    @current_user ||= create(:current_user)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
api_user_auth-0.1.9 spec/support/request_spec_helper.rb
api_user_auth-0.1.8 spec/support/request_spec_helper.rb
api_user_auth-0.1.7 spec/support/request_spec_helper.rb
api_user_auth-0.1.6 spec/support/request_spec_helper.rb
api_user_auth-0.1.5 spec/support/request_spec_helper.rb
api_user_auth-0.1.4 spec/support/request_spec_helper.rb
api_user_auth-0.1.2 spec/support/request_spec_helper.rb
api_user_auth-0.1.1 spec/support/request_spec_helper.rb
api_user_auth-0.1.0 spec/support/request_spec_helper.rb
api_user_auth-0.0.14 spec/support/request_spec_helper.rb
api_user_auth-0.0.12 spec/support/request_spec_helper.rb