Revision 1a6e85fa
Added by Ivan Necas about 10 years ago
test/actions/katello/environment_test.rb | ||
---|---|---|
::Katello::ContentView.expects(:create!).returns(content_view).with do |arg_hash|
|
||
arg_hash[:default] == true
|
||
end
|
||
content_view.expects(:add_environment).once.with do |env, version|
|
||
env == library && !version.nil?
|
||
end.returns(content_view_environment)
|
||
|
||
::Katello::ContentViewVersion.expects(:create!)
|
||
|
||
plan_action(action, library)
|
||
|
||
assert_action_planed_with(action,
|
||
::Actions::Katello::ContentView::Create,
|
||
content_view)
|
||
|
||
assert_action_planed_with(action,
|
||
::Actions::Katello::ContentView::EnvironmentCreate,
|
||
content_view_environment)
|
||
::Actions::Katello::ContentView::AddToEnvironment,
|
||
content_view.versions.first, library)
|
||
assert_action_planed_with(action,
|
||
::Actions::Katello::Foreman::ContentUpdate,
|
||
library, content_view)
|
Also available in: Unified diff
Extract adding content view version to environment into Dynflow