Sha256: 1cc9af57b57382bbb9cb15ddda4d288e5128504332287b5acc095824deddcc2f

Contents?: true

Size: 576 Bytes

Versions: 1

Compression:

Stored size: 576 Bytes

Contents

require 'test_helper'

class ActionController::TestCase
  def setup_bootdisk
    setup_routes
    setup_settings
    setup_templates
  end

  def setup_routes
    @routes = ForemanBootdisk::Engine.routes
  end

  def setup_settings
    Setting::Bootdisk.load_defaults
  end

  def setup_templates
    load File.join(File.dirname(__FILE__), '..', 'db', 'seeds.d', '50-bootdisk_templates.rb')
  end

  def setup_host
    subnet = FactoryGirl.create(:subnet, :gateway => '10.0.1.254', :dns_primary => '8.8.8.8')
    @host = FactoryGirl.create(:host, :subnet => subnet)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_bootdisk-4.0.2 test/test_plugin_helper.rb