require 'spec_helper'

describe HostsController do
  describe '#index' do
    let(:site)   { create :site, :with_default_host }

    before do
      get :index
      @parsed_response = JSON.parse(response.body)
    end

    it 'does not require authentication' do
      expect(response.status).to be(200)
    end

    it 'contains results, total and response info' do
      %w(results total _response_info).each do |key|
        expect(@parsed_response).to have_key(key)
      end
    end
  end
end

require 'spec_helper'

describe HostsController do
  describe '#index' do
    let(:site)   { create :site }

    before do
      get :index
      @parsed_response = JSON.parse(response.body)
    end

    it 'does not require authentication' do
      expect(response.status).to be(200)
    end

    it 'contains results, total and response info' do
      %w(results total _response_info).each do |key|
        expect(@parsed_response).to have_key(key)
      end
    end
  end
end

Remove last with_default_host trait usage
Remove last with_default_host trait usage

This trait was removed in 200e6db, but this instance was missed.
