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

Version Path
foreman_ansible-1.5.2 test/support/foreman_test_helper_additions.rb
foreman_ansible-1.5.1 test/support/foreman_test_helper_additions.rb
foreman_ansible-1.5.0 test/support/foreman_test_helper_additions.rb
foreman_ansible-1.4.6 test/support/foreman_test_helper_additions.rb
foreman_ansible-1.4.5 test/support/foreman_test_helper_additions.rb
foreman_ansible-1.4.3 test/support/foreman_test_helper_additions.rb
foreman_ansible-1.4.2 test/support/foreman_test_helper_additions.rb
foreman_ansible-1.4.1 test/support/foreman_test_helper_additions.rb
foreman_ansible-1.4.0 test/support/foreman_test_helper_additions.rb
foreman_ansible-1.3.1 test/support/foreman_test_helper_additions.rb
foreman_ansible-1.3.0 test/support/foreman_test_helper_additions.rb
foreman_ansible-1.2.1 test/support/foreman_test_helper_additions.rb
foreman_ansible-1.2 test/support/foreman_test_helper_additions.rb
foreman_ansible-1.1 test/support/foreman_test_helper_additions.rb