lib/heroku/api/mock/apps.rb in heroku-api-0.1.2 vs lib/heroku/api/mock/apps.rb in heroku-api-0.1.3

- old
+ new

@@ -142,10 +142,13 @@ request_params, mock_data = parse_stub_params(params) app, _ = request_params[:captures][:path] with_mock_app(mock_data, app) do |app_data| if request_params[:query].has_key?('app[name]') - app_data['name'] = request_params[:query]['app[name]'] + name = request_params[:query]['app[name]'] + app_data['git_url'] = "git@heroku.com:#{name}.git" + app_data['name'] = name + app_data['web_url'] = "http://#{name}.herokuapp.com/" end if request_params[:query].has_key?('app[transfer_owner]') email = request_params[:query]['app[transfer_owner]'] if collaborator = get_mock_collaborator(mock_data, app, email) app_data['owner_email'] = email