Skip to content

Commit

Permalink
test action_subject in Dynflow::Action
Browse files Browse the repository at this point in the history
  • Loading branch information
pitr-ch committed Jan 21, 2014
1 parent 5e2ad69 commit f808b39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/actions/katello/repository_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module Katello
action_class = namespace::Destroy
repository = mock 'repository', destroy: true
action = create_action action_class
action.stubs :action_subject
action.stubs(:action_subject).with(repository)
plan_action action, repository
end
end
Expand All @@ -68,7 +68,7 @@ module Katello
action_class = namespace::Sync
repository = mock 'repository', pulp_id: 1
action = create_action action_class
action.stubs :action_subject
action.stubs(:action_subject).with(repository)
plan_action action, repository

assert_action_planed action, ::Actions::Pulp::Repository::Sync
Expand Down
4 changes: 2 additions & 2 deletions test/actions/katello/system/package_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ module Katello
let(:action_class) { raise NotImplementedError }
let(:action) do
action = create_action action_class
action.stubs :action_subject
plan_action action, system, packages = %w(vim vi)
action.stubs(:action_subject).with(system, :packages => packages = %w(vim vi))
plan_action action, system, packages
end

describe 'Install' do
Expand Down

0 comments on commit f808b39

Please sign in to comment.