lib/napa/generators/templates/scaffold/spec/apis/hello_api_spec.rb.tt in napa-0.2.1 vs lib/napa/generators/templates/scaffold/spec/apis/hello_api_spec.rb.tt in napa-0.3.0
- old
+ new
@@ -8,10 +8,10 @@
include Rack::Test::Methods
describe 'GET /hello' do
it 'returns a hello world message' do
get '/hello'
- expect(last_response.body).to eq({ message: 'Hello Wonderful World, from <%= app_name.classify %>!' }.to_json)
+ expect(response_body).to eq({ message: 'Hello Wonderful World, from <%= app_name.classify %>!' }.to_json)
end
end
end