Skip to content

Commit

Permalink
Merge pull request #203 from d-m-u/add_tests_for_allowed_cloud_networks
Browse files Browse the repository at this point in the history
Test az_to_cn method from super
  • Loading branch information
mansam authored Jan 19, 2018
2 parents bf8a382 + 4583169 commit 591e223
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,18 @@
end
end

context "availability_zone_to_cloud_network" do
it "has one when it should" do
FactoryGirl.create(:cloud_network_google, :ext_management_system => provider.network_manager)

expect(workflow.allowed_cloud_networks.size).to eq(1)
end

it "has none when it should" do
expect(workflow.allowed_cloud_networks.size).to eq(0)
end
end

context "#display_name_for_name_description" do
let(:flavor) { FactoryGirl.create(:flavor_openstack) }

Expand Down

0 comments on commit 591e223

Please sign in to comment.