lib/heroku/api/mock/releases.rb in heroku-api-0.3.15 vs lib/heroku/api/mock/releases.rb in heroku-api-0.3.16

- old
+ new

@@ -6,11 +6,11 @@ Excon.stub(:expects => 200, :method => :get, :path => %r{^/apps/([^/]+)/releases$} ) do |params| request_params, mock_data = parse_stub_params(params) app, _ = request_params[:captures][:path] with_mock_app(mock_data, app) do |app_data| { - :body => Heroku::API::OkJson.encode(mock_data[:releases][app]), + :body => MultiJson.dump(mock_data[:releases][app]), :status => 200 } end end @@ -20,11 +20,11 @@ app, release_name, _ = request_params[:captures][:path] with_mock_app(mock_data, app) do |app_data| releases = mock_data[:releases][app] if release_data = (release_name == 'current' && releases.last) || releases.detect {|release| release['name'] == release_name} { - :body => Heroku::API::OkJson.encode(release_data), + :body => MultiJson.dump(release_data), :status => 200 } else { :body => 'Record not found.', @@ -49,10 +49,10 @@ :body => release_data['name'], :status => 200 } else { - :body => Heroku::API::OkJson.encode({'error' => 'Cannot rollback to a release that had a different set of addons installed'}), + :body => MultiJson.dump({'error' => 'Cannot rollback to a release that had a different set of addons installed'}), :status => 422 } end else {