Module: RackSpecMixin

Includes:
Rack::Test::Methods
Defined in:
lib/hippo/spec_helper.rb

Instance Method Summary collapse

Instance Method Details

#appObject


40
41
42
# File 'lib/hippo/spec_helper.rb', line 40

def app
    Hippo::API::Root
end

#last_response_jsonObject


43
44
45
# File 'lib/hippo/spec_helper.rb', line 43

def last_response_json
    Oj.load(last_response.body)
end

#response_dataObject


46
47
48
# File 'lib/hippo/spec_helper.rb', line 46

def response_data
    last_response_json['data']
end