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