Sha256: bbb19c98088b1cd2a0afc6b516c356afd87d2b945251ecfb8001ce2f0b59cb8d
Contents?: true
Size: 791 Bytes
Versions: 1
Compression:
Stored size: 791 Bytes
Contents
require 'test_plugin_helper' module ForemanDiscovery module Concerns class HostsControllerTest < ActionController::TestCase tests ::HostsController context 'hosts controller requests from discovered_hosts url' do test 'get "host" params from "discovered_hosts" params' do os = FactoryGirl.create(:operatingsystem, :with_associations) arch_id = os.architectures.first.id discovered_host_params = { 'discovered_host' => { 'architecture_id' => arch_id } } @request.stubs(:path).returns(architecture_selected_discovered_hosts_path) post :architecture_selected, discovered_host_params, set_session_user assert_match(/"#{os.id}"/, response.body) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_discovery-10.0.0 | test/functional/foreman_discovery/concerns/hosts_controller_extensions_test.rb |