Sha256: 05c344150e65440b972dbaed1df2cea1e365cb3825317cf275e4265536eb8957
Contents?: true
Size: 594 Bytes
Versions: 14
Compression:
Stored size: 594 Bytes
Contents
require "#{ForemanAnsible::Engine.root}/test/support/fixture_support" # loads the permissions for foreman_ansible and makes them available in tests module AnsiblePermissionTestCase extend ActiveSupport::Concern included do extend ActiveRecord::TestFixtures new_fixture_path = Dir.mktmpdir('ansible_fixtures') self.fixture_path = new_fixture_path ForemanAnsible::PluginFixtures.add_fixtures(new_fixture_path) fixtures(:all) load_fixtures(ActiveRecord::Base) end end module ActiveSupport #:nodoc class TestCase include AnsiblePermissionTestCase end end
Version data entries
14 entries across 14 versions & 1 rubygems