Skip to content

Commit

Permalink
More Zeitwerk work
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Jul 30, 2022
1 parent 6f25db5 commit 1c6aa5f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
9 changes: 1 addition & 8 deletions test/models/compute_resources/ovirt_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'test_helper'
require 'models/compute_resources/compute_resource_test_helpers'

class Foreman::Model:: OvirtTest < ActiveSupport::TestCase
class Foreman::Model::OvirtTest < ActiveSupport::TestCase
include ComputeResourceTestHelpers

should validate_presence_of(:url)
Expand Down Expand Up @@ -50,8 +49,6 @@ class Foreman::Model:: OvirtTest < ActiveSupport::TestCase
end

describe "associating operating system" do
require 'fog/ovirt/models/compute/operating_system'

setup do
operating_systems_xml = Nokogiri::XML(File.read('test/fixtures/ovirt_operating_systems.xml'))
@ovirt_oses = operating_systems_xml.xpath('/operating_systems/operating_system').map do |os|
Expand Down Expand Up @@ -105,8 +102,6 @@ class Foreman::Model:: OvirtTest < ActiveSupport::TestCase
end

describe 'APIv4 support' do
require 'fog/ovirt/models/compute/quota'

before do
@compute_resource = FactoryBot.build(:ovirt_cr)
@quota = Fog::Ovirt::Compute::Quota.new({ :id => '1', :name => "Default" })
Expand All @@ -122,8 +117,6 @@ class Foreman::Model:: OvirtTest < ActiveSupport::TestCase
end

describe 'quota validation and name-id substitution' do
require 'fog/ovirt/models/compute/quota'

before do
@compute_resource = FactoryBot.build(:ovirt_cr)
@quota = Fog::Ovirt::Compute::Quota.new({ :id => '1', :name => 'Default' })
Expand Down
2 changes: 1 addition & 1 deletion test/unit/plugin/plugin_migration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'generators/plugin/migration_generator'

class PluginMigrationTest < Rails::Generators::TestCase
tests Plugin::MigrationGenerator
tests Generators::Plugin::MigrationGenerator

destination File.join(Dir.tmpdir, "/migration_generator_test/core")

Expand Down
3 changes: 0 additions & 3 deletions test/unit/shared/access_permissions_test_base.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
require 'foreman/access_control'
require 'foreman/access_permissions'

module AccessPermissionsTestBase
extend ActiveSupport::Concern

Expand Down

0 comments on commit 1c6aa5f

Please sign in to comment.