Skip to content

Commit

Permalink
Added test for network connection to fog.
Browse files Browse the repository at this point in the history
  • Loading branch information
ameyavarade committed May 29, 2014
1 parent 177dc13 commit bac4c2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/unit/fog_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@
Fog::Compute.should_receive(:new).with({:provider => 'Any Cloud Provider'})
instance.connection
end
end

context "network" do
it "creates a connection to fog network with the provided auth params." do
Fog::Network.should_receive(:new).with({:provider => 'Any Cloud Provider'})
instance.network
end
end

context "add_custom_attributes" do
Expand Down

0 comments on commit bac4c2a

Please sign in to comment.