Sha256: 90f7ff0511e3c0dc70b76b48f93594c4b91ddc1d769eba6faff7e94f1c439ab0

Contents?: true

Size: 439 Bytes

Versions: 5

Compression:

Stored size: 439 Bytes

Contents

# frozen_string_literal: true

require 'test_plugin_helper'

class PreupgradeReportsControllerTest < ActionController::TestCase
  setup do
    @host = FactoryBot.create :host
    FactoryBot.create :preupgrade_report, host: @host
  end

  test 'should get index' do
    get :index, session: set_session_user
    response = ActiveSupport::JSON.decode(@response.body)
    assert_equal @host.id, response['results'].first['host_id']
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_leapp-0.0.6 test/functional/preupgrade_reports_controller_test.rb
foreman_leapp-0.0.5 test/functional/preupgrade_reports_controller_test.rb
foreman_leapp-0.0.4 test/functional/preupgrade_reports_controller_test.rb
foreman_leapp-0.0.3 test/functional/preupgrade_reports_controller_test.rb
foreman_leapp-0.0.2 test/functional/preupgrade_reports_controller_test.rb