Skip to content

Commit

Permalink
Update test description to properly set expectations of what is tested
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunne committed Aug 5, 2015
1 parent 27db482 commit 4a42e16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/models/miq_request_workflow_spec.rb
Expand Up @@ -157,7 +157,7 @@
let(:ems) { FactoryGirl.create(:ext_management_system) }
let(:resource_pool) { FactoryGirl.create(:resource_pool, :ems_id => ems.id) }

it "#allowed_clusters" do
it "#allowed_clusters calls allowed_ci with the correct set of cluster ids" do
FactoryGirl.create(:ems_cluster)
allow_any_instance_of(User).to receive(:get_timezone).and_return("UTC")
allow(workflow).to receive(:get_source_and_targets).and_return(:ems => ems)
Expand All @@ -167,7 +167,7 @@
workflow.allowed_clusters
end

it "#allowed_resource_pools" do
it "#allowed_resource_pools calls allowed_ci with the correct set of resource_pool ids" do
FactoryGirl.create(:resource_pool)
allow_any_instance_of(User).to receive(:get_timezone).and_return("UTC")
allow(workflow).to receive(:get_source_and_targets).and_return(:ems => ems)
Expand Down

0 comments on commit 4a42e16

Please sign in to comment.